GeeCON Prague 2014*
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


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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with query string