struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Menard <m...@mjm.net>
Subject Re: S2 life cycle
Date Wed, 04 Apr 2007 00:01:49 GMT
On 4/3/07 7:46 PM, "tom tom" <j_lalith@yahoo.com> wrote:

> We can have one ActionForm with session scope shared
> across many action classes. (which I believe as a nice
> feature). How can I achieve such a thing in S2, In
> S2's way if we have this POJO as a Action attribute,
> what is  it's scope?
> 
> At the same time I have heard about a interceptor
> called ScopedModelDriven interface.

You want to look at ScopedModelDriven. Basically the ActionForm just becomes
a POJO, and that POJO is shared by the various actions using the
ScopedModelDriven mechanism.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message