I guess I'm a little confused; you want to keep something in session, but you're removing it from session after the action executes?
Nick Sher
Ranch Hand
Joined: Nov 10, 2008
Posts: 78
posted
0
Yes, this is because it is a wizard like form and in between if the user wants to reset the form then I should remove whatever was there in the session. or else save it.
Patrick Kok
Ranch Hand
Joined: Nov 12, 2009
Posts: 42
posted
0
Nick Sher wrote:Hi,
I am having some difficulty using scope interceptor. I have getter and setter for 'dBean' in my action class and I want to keep it in a session.
I have tried this:
I am using the above action to reset the form but its not working. What am I missing?
Your form is rendered BEFORE your session "dBean" value is invalidate().
your form will never be reset at that way, if I understand you clearly.
Nick Sher
Ranch Hand
Joined: Nov 10, 2008
Posts: 78
posted
0
Ok, then how do I achieve what I want. I am unable to follow the documentation for this interceptor and could not find examples. Please help.