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 2002/04/05 07:22:57 UTC

DO NOT REPLY [Bug 7756] New: - The reset() method seems to be called twice

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7756

The reset() method seems to be called twice

           Summary: The reset() method seems to be called twice
           Product: Struts
           Version: 1.1 Beta 1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Controller
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: chuckcavaness@attbi.com


In the processActionForm() method, the RequestUtils.createActionForm() method 
is called. The last line in that method is a call to the reset method on the 
form instance. Nothing else really happens with the form in the 
processActionForm(), except for to store it into the proper scope.

Immediately following this, the processPopulate() method is called. The very 
first line in this method, except for the check to see if the form is null and 
a log statement, is a call to the reset() method on the same form instance.

Unless I'm missing something, I don't believe that both reset calls are needed.

Chuck Cavaness

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>