Re: how to avoid creating new Action class instance for every request in STRUTS2

2007-09-29 Thread Zarar Siddiqi
If you're using Spring you could define your action bean as a singleton and that would do the trick since the same instance would always be reused. Note that this is pretty crazy in most cases, you're probably better off storing our objects in session scope like Chris suggested. Zarar On 9/29/07

Re: how to avoid creating new Action class instance for every request in STRUTS2

2007-09-28 Thread Chris Pratt
You're probably right, whenever the Action is created, it's initialized. In struts 1, since the Actions didn't go away, any data was retained. This was usually the source of many, many bugs. It's a very rare condition when you want the data from one invocation of the Action to carry forward to t