You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/09/06 11:15:54 UTC

DO NOT REPLY [Bug 36514] - form bean funny behavior

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36514>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36514





------- Additional Comments From jonnie.avinash@gmail.com  2005-09-06 11:15 -------
1) http request comes (OK)
2)form bean created (OK)
3)from properties copied from http request (OK)
4)Action class A1 called (OK)
5)A1 makes changes and sets some properties in form bean (OK)
6)A1 forwards to action class A2 (OK)
7)form bean reused (OK)
8) reset called ( ... is this OK ??? ) 
9) properties recopied from original http request ( definitely NOTOK
10) action class A2 called (OK) ... But I lost the changes made to some of the
properties by A1 that was replaced by recopying from original request.

Steps 8 looks like a bug.
Step 9 is definitely a bug 




(In reply to comment #0)
> I have faced the following issue.
> 
> I have one action class A1 that forward to action class A2.
> 
> Now for A1 the form bean is populated from the http request where properties are
> copied. This behavior is fine. 
> 
> In A1 I change some of the properties in the form bean. I then proceed to
> forward it (internally) to A2
> 
> But for A2 that uses the same formbean I would think the normal behavior is to
> retain the changes from A1. Instead I find that the object used is the same. But
> before it passes it to the action class A2 it re-copies it from the original
> request !!! I lose the changes I made in A1. This is as if A1 never processed it
> since properties are recopied from the original http request. 
> 
> This is a reproducible bug. And this deviation from standard behavior is very
> concerning.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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