File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Software Craftsman this week in the Agile 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: 603
    
    4

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: 603
    
    4

Yes..
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Why is this url rewriting not working