title: How to remove actions from the ValueStack?
body: <p>I'm trying to make my action classes singletons. The point is to make action classes <em>real</em> controllers in MVC pattern. Especially when implementing REST controllers the scope of the controller could be extended to the life of the application. Like in Spring framework the controller is put to the default scope by default, the default scope in Spring is singleton.</p>
  <p>Struts 2 has also a default scope, and it's also singleton. I want to put my action classes to this scope and remove them from the value stack.</p>
  <p>How could I modify Struts 2 framework to make my actions like a controller in Spring? I know that I could just delegate management of action classes to Spring, but I can't use a default scope, and Struts 2 container is still keep running. I can't remove it from the framework, because it's not pluggable.</p>
  <p>So, walking around Spring and Struts2 container I can't make my action classes singletons because Struts 2 instantiate and put them to the <code>ValueStack</code>.</p>
  <p><strong>This is my question:</strong></p>
  <p>If I choose the container between Struts 2 and Spring to put my action classes to default scope, how could I tell Struts 2 framework not to put them to the <code>ValueStack</code>?</p>