aspose file tools*
The moose likes Servlets and the fly likes Request Parameter has a Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Request Parameter has a "&"" Watch "Request Parameter has a "&"" New topic
Author

Request Parameter has a "&"

Shiaber Shaam
Ranch Hand

Joined: Jun 16, 2006
Posts: 252
Hi,

One of my servlet's request parameter's value has a "&". As & is used when more than 1 request parameter is there, Please let me know how to handle this scenario.

Thanks,

$Hi/\bEr
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39571
    
  27
By URL-encoding it. The HttpServletResponse class has a method for that.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Request Parameter has a "&"
 
Similar Threads
response.encodeURL
How to read data from a url in jsp
request.getParameter(String s)
getting multiple values out of an html:select option box
pass bean from jsp:setProperty to servlet?