Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Secure session Data" Watch "Secure session Data" New topic
Author

Secure session Data

Namita Bhatt
Greenhorn

Joined: Feb 25, 2005
Posts: 2
Hi,
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
Namita
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.


Merrill
Consultant, Sima Solutions
Namita Bhatt
Greenhorn

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Secure session Data
 
Similar Threads
jQuery - ajax call .load()
https and cookies
exclude url-pattern in filter-mapping
Struts 2 and Authentication Interceptor - is this secure?
Scope interceptor: scope.type = end not doing any cleanup.