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 sending space separated string in sendRedirect Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "sending space separated string in sendRedirect" Watch "sending space separated string in sendRedirect" New topic
Author

sending space separated string in sendRedirect

Soni Prasad
Ranch Hand

Joined: Mar 09, 2005
Posts: 97
I am trying to send a space separated string in the query string while redirecting my response to some jsp, the string is "Reports and Logs", it becomes "Reports%20&%20Logs" in URL while redirection. When I am trying to retrieve this string in the redirected jsp I am getting just "Reports ". How can I get the whole string"Reports and Logs" in the redirected jsp or how can I send a space separated string in sendRedirect??


SCJP 1.4, SCBCD 1.3
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

it becomes

How are you converting Reports and Logs to Reports%20&%20Logs?

It'sconverting 'and' into '&' and this is causing your problem. It should be creating Reports%20and%20Logs
Soni Prasad
Ranch Hand

Joined: Mar 09, 2005
Posts: 97
Thanx! I got it actually the string was "Report & Logs" ....
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: sending space separated string in sendRedirect
 
Similar Threads
Why request dispatcher is not sending querystring to jsp?
sendRedirect method
Timestamp issue with %20 space.
Query on response.sendRedirect() ???
sendRedirect as POST