Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with get parameters value

 
netanel weinberg
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I've problem when trying to get the parameters' values when the user have typed the input with special characters like &, how can I handle it?

Thank you,
Netanel
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
netanel weinberg
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the value I get when calling request.getParameter(<parameterName> is cut and getting only the part until the &
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where are the users typing the input?
All modern browsers will url-encode data entered into HTTP form widgets.
Are people typing directly to the query string?
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic