Thomas To wrote:
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?

try:
<a href="http://webserver/servlets/test?John%20Chuck">

Gabriel Wong
http://www.ezwebtools.com
----------------------------

Reply via email to