Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request Parameter has a "&"

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By URL-encoding it. The HttpServletResponse class has a method for that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic