Two Laptop Bag*
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: 507

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

Yes..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why is this url rewriting not working
 
Similar Threads
How to retain textbox value after refresh
Problem passing a value from one jsp to another using href
returning value from popup
Why does th compiler allow changing the type of inherited instance/static variables.
sessions