Java Mailing List Archive

http://www.junlu.com/

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

Re: tricking the browser with a path

Philipp Taprogge

2004-01-08

Replies:

Hi!

Justin Walters wrote:
> http://website.com/subdir/script.jsp/more/pathinfo
>
> Currently, it looks like it just assumes script.jsp is another
> subdirectory, and so this request doesn't work, you get a 404. Is there
> a way for me to configure Tomcat such that it loads script.jsp?

AFAIK this is not possible with tomcat out of the box. You basically
have two options here: either use the normal
script.jsp?path=/more/pathinfo syntax and use that variable in your
jsp or use some kind of URL rewriting. If you are using apache with
tomcat, this can be done with mod_rewrite, if you use tomcat
standalone, you can write a filter in your webapp to do this.

HTH

 Phil


---------------------------------------------------------------------
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.