aspose file tools*
The moose likes Servlets and the fly likes Why is this url rewriting not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Why is this url rewriting not working" Watch "Why is this url rewriting not working" New topic
Author

Why is this url rewriting not working

Rajesh Khan
Ranch Hand

Joined: Oct 16, 2011
Posts: 230
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

Joined: Apr 25, 2010
Posts: 538

PageName?VariableA=Hello,VariableB=Somevalue ..

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

Note its '&' not ',' as the separator.
Rajesh Khan
Ranch Hand

Joined: Oct 16, 2011
Posts: 230
Should have replace , with &
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 538

Yes..
 
jQuery in Action, 2nd edition
 
subject: Why is this url rewriting not working