Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: restricting access to jsp pages

Ben Souther

2004-01-14

Replies:

Hiding the JSPs is easy.
Put them under the WEB-INF directory.



On Wednesday 14 January 2004 06:43 pm, you wrote:
> Greetings!
>
> I am using struts 1.1 with Tomcat 4.1. I want to disallow a user to get
> direct access to my static pages. That is, if the user types a url that
> ends in anything but ".do", I want them redirected to "/Welcome.do". On
> the other hand, I want to be able to access jsp pages and such via the
> forwarding mechanism of struts. When I try to simply redirect all
> requests that end in ".jsp", I get a redirection limit reached error...
> apparently the struts redirects to jsp pages are also being caught.
>
> Is there a simple solution to this? It seems like there should be...
>
> Thank you,
> Michael
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.