You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Stephen Turner <st...@MIT.EDU> on 2009/08/25 20:43:23 UTC
Re: Struts2 - ScopedModelDriven - Unable to update the model and set
the latest Model data in session
On Wed, 19 Aug 2009 09:24:52 -0400, Raghuveer.V
<ra...@infotechsw.com> wrote:
> Hi,
>
>
>
> I have a problem implementing ScopedModelDriven.
>
One thing that could be a problem:
>
> public void prepare() throws Exception {
> user = new User();
Don't instantiate a new User object - the interceptor will do that the
first time, and will pull the object out of session after that, and inject
it into your action class.
Steve
--
Stephen Turner
Senior Programmer/Analyst - SAIS
MIT IS&T
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org