File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Secure session Data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Secure session Data" Watch "Secure session Data" New topic

Secure session Data

Namita Bhatt

Joined: Feb 25, 2005
Posts: 2
I am calling response.sendRedirect(response.encodeRedirectURL(redirectString)) in my Action class,the action is called again
But since the session now is secure ,I don�t have the data from the previous session to use in this action.
Is there any way in which I can store the previous values from session and pass it on to the secure session as I need them in my action and jsp.

Thanks in Advance
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
One way you could do this would be to read the parameters passed in, and then attach them as parameters to the outgoing query string in the format ?parm1=value1&parm2=value2 ... etc.

Consultant, Sima Solutions
Namita Bhatt

Joined: Feb 25, 2005
Posts: 2
Thanks Merrill for the reply,
but could you explain it in detail.
I can pass the values as you have mentioned but how do I retrieve those values in my jsp.
For ex. If I have a VO in the session ,I add it as param1 = VO
but how do i get it in my jsp.
I agree. Here's the link:
subject: Secure session Data
It's not a secret anymore!