struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Prototype beans
Date Mon, 03 Dec 2012 15:34:28 GMT
2012/12/3 Rohit Gupta <rohit@simplify360.com>:
> I am using XML approach, it works fine when the type is not prototype,
> understandable so since the same instance is used across requests.

As I understand you have been using session scoped actions or even
singletons - and edit worked because the instance was there all the
time (in session bean). But thus is wrong :-)

You must load instance from backend on each request - load, apply
changes from a form, save.


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Mime
View raw message