• 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: 670
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: 670
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