struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <>
Subject Re: Location of jsp files
Date Sat, 11 Jan 2003 20:39:17 GMT
Putting them under WEB-INF isn't portable because all containers don't 
necessarily support it.  You can set up a security constraint in web.xml to 
accomplish the same thing portably.


				No roles should be able to access a JSP directly.  Everyone
				must go through the controller servlet.

    		Nobody should be in this role so jsp files are protected
    		from direct access.

>From: "Jonathan Hodges" <>
>Reply-To: "Struts Users Mailing List" <>
>To: <>
>Subject: Location of jsp files
>Date: Sat, 11 Jan 2003 09:31:24 -0600
>I was wondering what the best practice is for the location of my jsp
>files in my web application.  I was thinking about placing them in the
>WEB-INF directory so they couldn't be reached without going through the
>ActionServlet.  I guess I could accomplish the same thing with the right
>mapping the in the web.xml file as well.
>Any suggestions?
>Thanks in advance,
>Jonathan Hodges
>Infinity Insurance

MSN 8 with e-mail virus protection service: 2 months FREE*

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message