Change the code to print the parameters the servlet recieved after the
Universal Resource Locator address
You may accidentally switch the order when you send your feedback unless you
parse
the raw request to get your information.
The servlet considers everything after the question mark to be the query
string (a parameter ) not a URL

I am not sure what the  program will do with the second question mark.

Jay A. Schmitendorf
----- Original Message -----
From: "Annette Gori" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 15, 2000 4:11 AM
Subject: How to print the request Url-Adresse


> Hello !
>
> ;-) my problem:
> can anybody please help me? I need that every times the client talks to my
> server,
> my server prints the url adresse which it is used from the client:
> Example:
> http://myserver/servlets/Hello/dfsdfs/asdfg?sdfa?asfda
> the server should print
> /servlets/Hello/dfsdfs/asdfg?sdfa?asfda
>
> my situation now:
> I wrote a servlet that prints only a part of the url adresse.
> Example:
> http://myserver/servlets/Hello/dfsdfs/asdfd
> my server is a Apache and redirect every request to my servlet Hello.
> The answer from Hello is : servlets/Hello/dfsdfs/asdfd
> but if the client requests
> http://myserver/servlets/Hello/dfsdfs/asdfg?sdfa?asfda
> the server still answers: : servlets/Hello/dfsdfs/asdfd
>
> Thanks
> Annette
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to