On Sat, 20 Apr 2002, Micael Padraig Og mac Grene wrote:

> Date: Sat, 20 Apr 2002 00:39:53 -0700
> From: Micael Padraig Og mac Grene <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: Inside WEB-INF or outside WEB-INF? Struts security.
>
> Exactly!  So, why do the typical examples put the jsp pages outside?
>

The requirement that JSP pages work from inside /WEB-INF is not
particularly clear in the Servlet 2.2 and JSP 1.1 specs, and in fact they
do not work in some containers.  To minimize startup problems, that is why
the Struts examples have them outside.

Additionally, some Struts-based webapps do direct links from one JSP page
to another, when there is no need for any processing logic in between.
This won't work if they are inside.

Finally, on't forget that, even if you put your own JSP pages inside the
/WEB-INF directory, you'll need to leave the app home page (usually
index.jsp) outside so that it is accessible.

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to