Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Encrypted query string is not retrieved from request.getParameter() method

 
Kishore Kumar Reddy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am redirecting a jsp page to another jsp(is in another web application but both are in same web server).
While rediecting, I attached a value(it is encrypted) as query string.
On the other side, I am retrieving the encrypted value using request.getParameter().
But, it is getting as NULL.

Can anyone suggest?

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read ⇒ TellTheDetails

For example, one really important fact you left out is how you are formatting the URL.
 
Kishore Kumar Reddy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Please read ⇒ TellTheDetails

For example, one really important fact you left out is how you are formatting the URL.


<% response.sendRedirect("/Sccui/display.jsp"); %>

//valuein the session is put in the one.jsp and trying to access this value from three.jsp when redirect happens from two.jsp using following code snippet
<% session.getValue("userID");%>
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no query string on that URL.
 
Michael Angstadt
Ranch Hand
Posts: 277
Eclipse IDE Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, how the URL query string is built is important. Namely, you must remember to encode all query string parameters. If you do not encode the parameters, then it is likely that you will run into problems. For example:



Also note that if you are redirecting to another application, then you will not be able to access the session attributes of the first application from the second application. It doesn't matter if they are on the same web server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic