wood burning stoves 2.0*
The moose likes JSP and the fly likes Problem with query string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem with query string" Watch "Problem with query string" New topic
Author

Problem with query string

nick angel
Ranch Hand

Joined: Dec 14, 2005
Posts: 39
I wish to send in a query string something along the following lines:



However when I try this and print out the value of cLink I get the following:



Could someone plese help me. Thank you.
kumari Jain
Ranch Hand

Joined: Jul 28, 2004
Posts: 44
hey nick,
IN the query string ,
"CommunicationPage.jsp?cLink=News.do?lang="+Lang+"&symbol=t.lb&return=3&link=pressPage";

The symbol ? is used instead of & as the delimiter after query parameter cLink=News.do
Hence value of cLink retrieved is News.do?lang=fr

hence simply rectify the query string as below.
"CommunicationPage.jsp?cLink=News.do&lang="+Lang+"&symbol=t.lb&return=3&link=pressPage";

regards,
kumari
[ January 23, 2006: Message edited by: Bear Bibeault ]
 
jQuery in Action, 2nd edition
 
subject: Problem with query string
 
Similar Threads
Problem with calling constructor from JNI code
Convert decimal value to binary
[Eclipse] [Subversive] Can check out project, but it then doesn't register as a Subversion project?
Weblogic 81 Thin Driver Issue
Placing variables for nested tiles