Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with query string

 
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic