This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with query string  RSS feed

 
nick angel
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!