• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
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?

 
Sheriff
Posts: 67269
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
Sheriff
Posts: 67269
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no query string on that URL.
 
Ranch Hand
Posts: 282
Eclipse IDE PHP Java
  • 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
Boost this thread!