File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Request Parameter has a "&"

Shiaber Shaam
Ranch Hand

Joined: Jun 16, 2006
Posts: 252

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.


Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
By URL-encoding it. The HttpServletResponse class has a method for that.
I agree. Here's the link:
subject: Request Parameter has a "&"
It's not a secret anymore!