This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


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: 42024
    
  64
By URL-encoding it. The HttpServletResponse class has a method for that.


Ping & DNS - my free Android networking tools app
 
GeeCON Prague 2014
 
subject: Request Parameter has a "&"