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=22575>.
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=22575

"ActionErrors validate" executed prematurely

           Summary: "ActionErrors validate" executed prematurely
           Product: Struts
           Version: 1.0 Final
          Platform: All
               URL: http://jakarta.apache.org/struts/doc-
                    1.0.2/userGuide/building_view.html#form_validation
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator Framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


in order to display a form, we put the following in our strutsconfig.xml:
  <action path="/register" 
                type="com.ourproject.control.action.RegisterAction" 
                name="userForm" 
                scope="request">
...
we load the page register.jsp containing the userForm with 'redirect="true"'.

the validate function doesn't only get executed once the user clicks on the
submit button in register.jsp, but also already when register.jsp gets displayed
for the first time before the user had any chance to enter any values.
No surprise that the validations fail then!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to