Pete wrote:
> Hi,
>
> I've looked at the FAQ, read the AJP1.1 spec etc etc and can't
> figure out what I need to do to satisfy a request for my Apache
> / Jserv to behave in the same way as another sites (running an
> old alpha version of Jserv).
>
> The user wants the URL for a servlet to be parsed in the same
> way as that for a CGI program so that (e.g.) the servlet:
> http://myhost/servlets/userzone/HelloWorld
> can accept parameters via:
> http://myhost/servlets/userzone/HelloWorld/I/want/to/get/off
> as is the case with (e.g.) a CGI equivalent:
> http://myhost/cgi-bin/HelloWorld/I/want/to/get/off
>
> This used to work with "an old alpha of Jserv 0.9.?" but I can't
> figure out how to do it with Jserv 1.0. Of course separating the
> servlet from its parameters with "?" works in both environments.
>
In servlet terminology, the "/I/want/to/get/off" part of the URI above
is called the "extra path info", which is informally defined as
"anything in the request URI after the part used to recognize which
servlet to call." not a parameter. you retrieve it by using the
HttpServletRequest.getPathInfo() call.
When figuring stuff like this out, I have found it really useful to grab
the SnoopServlet example from the JSDK, stick it in your zone, and throw
a variety of request URIs at it to see what shows up where.
>
> Pete
>
Craig McClanahan
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]