Now, I've gotten myself completely confused, and I offer profuse apologies to
the group for inflicting you with my observations, but...

When I use URLEncoder.encode for a URL or just the parameter portion of it,
there seems to be a problem.  The URL looks like:

    http://host:8080/servlet/MyServlet?param=first name

before encoding, and

   http://host:8080/servlet/MyServlet?param%3Dfirst+name

after encoding everything after the question mark. Which is as expected. But
getParameter doesn't seem to identify 'param' as a parameter name. If I
encode the URL like this:

  http://host:8080/servlet/MyServlet?param=first+name

then all is well. Why doesn't it like the hex rep of the equals character?
What am I doing wrong? I am using JSDK 2.1 and servletRunner under IIS/NT.

John Burns
IBS, Inc.

___________________________________________________________________________
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