This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes what value does getParamter get Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "what value does getParamter get " Watch "what value does getParamter get " New topic

what value does getParamter get

ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 374
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

Joined: Mar 06, 2001
Posts: 13459

You will get the original input.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60741

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: what value does getParamter get
Similar Threads
Houston's glass public toilet
printing default value of char
New York Recruiting Agencies
Special characters in input text value
How to find value of 'input' in an action class?