This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a base action support class that all my application actions extend....
I alter "stuck variable" in numerous actions that extends MyActionSupport, I set by calling it's setter.
Now everytime I returun to the DisorderAction, the value of stuckvariable is "wtf mate" before I even set it. Basically I need to clear the user session and clear a bunch of values across the entire app, but no matter what I do, it remains.
I've tried numerous ways to clear the session:
e.g. ((org.apache.struts2.dispatcher.SessionMap) ActionContext.getContext().getSession()).invalidate();
I must be missing something terribly obvious with the scope of that variable. Please help!