"Mike Curwen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It definitely works with mapped servlets, and request.getPathInfo(), if
> that's an option for you.
>
This is how you do it. What you need to do is in your web.xml add:
<servlet>
<servlet-name>script.jsp</servlet-name>
<jsp-file>/script.jsp</jsp-file>
</servlet>
...
<servlet-mapping>
<servlet-name>script.jsp</servlet-name>
<uri-pattern>/script.jsp/*</uri-pattern>
</servlet-mapping>
>
> > -----Original Message-----
> > From: Justin Walters [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, January 08, 2004 2:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: tricking the browser with a path
> >
> >
> > Here is something that works with PHP in Apache:
> >
> > http://website.com/subdir/script.php/more/pathinfo
> >
> > It loads script.php, and you then have the option of using
> > the rest of
> > the pathinfo in your script. Basically, I would like to know
> > if it is
> > possible to configure it to work like this in Tomcat as well:
> >
> 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?
>
> Forgive me if this is an already-discussed topic. I have no idea how to
>
> search for it, as I don't even know of what this is generically called.
>
> thanks,
>
> Justin Walters
> [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]