The signature of the method i know (at least until jsdk 1.2.0) is
getParameter(String)
  and it is not suposed to give you the hole request string instead it will
give you the string corresponding to the  parameter name ...
  if you have in a web form a name field and you put John Chuck
  your Browser will parse it as something like "name=John+Chuck"
 then you call on your servlet getParameter("name"); and it will return John
Chuck...

 I would guess that on your case you could just call the servlet with
<a href="http://webserver/servlets/test?John+Chuck">

I hope it helps ,but anyway  take a good look at the apidoc on the Interface
javax.servlet.ServletRequest.

Bruno Reis
-----Mensagem original-----
De: Thomas To <[EMAIL PROTECTED]>
Para: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Data: Segunda-feira, 10 de Maio de 1999 15:43
Assunto: question on getParameter()


>Hi all,
>
>I have a question regarding HttpServletRequest.getParameter().
>In the servlet, i'm calling getParameter() to get the value that is
>passed to the servlet through the following HTML statement:
><a href="http://webserver/servlets/test?John Chuck">
>
>getParameter() starts reading the string after the ? and stops at the
>space between John and Chuck.  If I removed the space, it will read all
>the way to the double quote.  Is there any way I can pass any string
>that contains space in between so that getParameter() will read all the
>way until the double quote?
>
>Thanks for your help.
>
>- Thomas -
>
>___________________________________________________________________________
>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