wood burning stoves*
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
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: 532

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: 532

Yes..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why is this url rewriting not working