This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
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

Why is this url rewriting not working

 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
response.sendRedirect("PageName?VariableA="+ Value +",VaribleB=SomeValue");
Inshort PageName?VariableA=Hello,VariableB=Somevalue
but the result of variable B is also present in VariableA ?? Is there something wrong with my parameters??
 
Prasad Krishnegowda
Ranch Hand
Posts: 665
4
Eclipse IDE Java Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PageName?VariableA=Hello,VariableB=Somevalue ..

It should be PageName?VariableA=Hello&VariableB=Somevalue ..

Note its '&' not ',' as the separator.
 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should have replace , with &
 
Prasad Krishnegowda
Ranch Hand
Posts: 665
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic