Re: {S2] Newbie: Sharing a POJO between two or more actions

2007-03-14 Thread cilquirm
If your actions occur in sequence, ( i.e. submit to an action -> display action ), it's possible to use action chaining to share objects. http://struts.apache.org/2.x/docs/action-chaining.html Roger Varley wrote: > > Hi > > I need to share an object between two actions. As I'm famili

Re: {S2] Newbie: Sharing a POJO between two or more actions

2007-03-14 Thread Alex Wibowo
with SessionAware, you have to implement: void *setSession *(Map session) so during testing you can e

Re: {S2] Newbie: Sharing a POJO between two or more actions

2007-03-14 Thread Dave Newton
--- Roger Varley wrote: > What is the recommended Struts 2 way of doing this? If you really need to share an object between actions I'm not how else you'd do it. It has also been noted that technically you aren't being tied to servlet by implementing that interface, although at one point you may

{S2] Newbie: Sharing a POJO between two or more actions

2007-03-14 Thread Roger Varley
Hi I need to share an object between two actions. As I'm familiar with servlet programming I reached for the SessionAware interface and share the object that way. And it works. However. the Javadoc for SessionAware discourages the use of this interface as it ties the actions to a servlet environm