Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what value does getParamter get

 
ben oliver
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I saw some people use URLRewriting or URLEncoding and observed that sometimes the URL includes some funny things like %20.. or things like that(after I clicked submit button). It seems some char were changed. If I use "getParameter" to retrieve input value, will this method return me the original input value or such funny modified chars ?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will get the original input.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64851
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "funny modified characters" are URL-encoded versions of special characters used within URLs such as =, &, ? and so on. Without encoding, they'll be assumed to be delimiters rather than parts of parameter names or values.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic