On Tue, 5 Mar 2002, Geeta Ramani wrote: > Vikas: > > Use the foll. class: java.net.URLEncoder (as well as java.net.URLDecoder).
More specifically, I suggest using it on each of the parameter values (or only those that might have problematic characters, like spaces and '#'s, in them), as opposed to the entire URL. (I'm assuming you have control over generating the URL in the first place.) > Vikas Gupta wrote: > > > It still does not work. > > as It just replaces space with + sign. > > > > The problem is # is treated as anchor sign in URL and we have to espace it. > > > > Thanks > > Vikas > > > > -----Original Message----- > > From: Chandrasekaran, Meera [mailto:[EMAIL PROTECTED]] > > Sent: Tue 3/5/2002 1:07 PM > > To: [EMAIL PROTECTED] > > Cc: > > Subject: Re: URL > > > > > > > > Vikas, > > you forgot to encode the URL! > > > > -----Original Message----- > > From: Vikas Gupta [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, March 05, 2002 1:05 PM > > To: [EMAIL PROTECTED] > > Subject: URL > > > > > > Hi, > > > > I am trying to read the following URL: > > > > http://www.abc.com?name=parm1&address=Street # 14&state=AB > > > > request.getParameter for address return back "Street" instead of "Street # > > 14". > > > > Any Sugesstions?? > > > > Thanks > > Vikas Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] ___________________________________________________________________________ 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
