Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Help With request.parameter on url parameter

Status
Not open for further replies.

donniea21

MIS
Feb 16, 2001
75
US
I am passing a paramter to a servlet through the url. The parameter has spaces (i.e. parameter=My%20Parameter%20has%20spaces is passed in the url)

When i do a request.parameter(parameter) it only returns the first word (i.e. My). How do i get the whole thing?

Thanks
 
U encode the text with in single code then it will give entier string and later remove those codes . Kishore Kumar K
Covansys India
 
Thanks, i got it, now my problem is that one of my parameters may include and & in the name i.e. Brown & Sons Inc. so when i request it, the & causes problems..
 
U just put them with in codes

parameter="Brown & Inc. "
And send it ,this is the only way(something like this) as far as i think.
All the best Kishore Kumar K
Covansys India
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top