A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
request string % problem
subodh gupta
Ranch Hand
Joined: Jul 23, 2007
Posts: 203
posted
Apr 10, 2008 00:41:00
0
Hi Ranchers,
ClientQuerySearchAction.do?modulePer=[B]92.7%[/B]&clientCode=111
In this request Url i am receving nothing in the modulePer field can you help me with escape character for it.
http://subodh-gupta.blogspot.com
Balasubramani Dharmalingam
Ranch Hand
Joined: Dec 06, 2004
Posts: 116
posted
Apr 10, 2008 00:51:00
0
String encodedURL = URLEncoder.encode("ClientQuerySearchAction.do?modulePer=92.7%&clientCode=111" , "UTF-8");
Use encodedURL. Then it should work..
Balasubramani SD,<br />SCJP 1.4,SCWCD 1.4,SCJP 5.0<br /><a href="http://sd.balasubramani.googlepages.com" target="_blank" rel="nofollow">www.sd.balasubramani.googlepages.com</a>
subodh gupta
Ranch Hand
Joined: Jul 23, 2007
Posts: 203
posted
Apr 10, 2008 00:55:00
0
any other way?
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
I like...
posted
Apr 10, 2008 04:45:00
0
Originally posted by subodh gupta:
any other way?
Why are you asking for another way?
If you want to send control characters in a query
string
, you have to encode them.
Java API
J2EE API
Servlet Spec
JSP Spec
How to ask a question...
Simple Servlet Examples
jsonf
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: request string % problem
Similar Threads
Passing parameters between 2 servlets
Stuck on EL syntax for request values on child page
passing value using Namespace from JSP to Portlet's processAction method?
IllegalStateException in servlet
caching issue of c:forEach in JSF
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter