I've never seen the directory syntax before for passing parameters...  How 
does it work?  In your example below, does the parameter I="want", 
to="get", and off=""?

Is there a spec for this functionality somewhere?  I'm thinking it may be 
for just a certain web server, as I haven't heard of anything in HTML to 
allow form input to be posted like that.  If all your're wanting is to pass 
different hard-coded parameters to the servlet depending on which page or 
form it was called from, use hidden form controls:
<FORM METHOD=GET ACTION=/servlets/HelloWorld>
  <INPUT TYPE=HIDDEN NAME="I" VALUE="want">
</FORM>

To get the path you can use HttpServletRequest.getRequestURI(), then take a 
look at it yourself, maybe using a StringTokenizer to separate out the 
elements.

Hope this helps...

Jason

-----Original Message-----
From:   Pete [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, July 21, 1999 8:49 AM
To:     Java Apache Users
Subject:        Parameter passing to Jserv 1.0 / Apache 1.3.6

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.

Pete



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


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

Reply via email to