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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 510

PageName?VariableA=Hello,VariableB=Somevalue ..

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

Note its '&' not ',' as the separator.


Regards, Prasad
SCJP 5 (93%)
Rajesh Khan
Ranch Hand

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

Joined: Apr 25, 2010
Posts: 510

Yes..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Why is this url rewriting not working