This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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
Rancher

Joined: Mar 22, 2005
Posts: 42952
    
  73
By URL-encoding it. The HttpServletResponse class has a method for that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Request Parameter has a "&"