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

Server-side validation not called when validate="true"

           Summary: Server-side validation not called when validate="true"
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator Framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have validation="true" on a savePerson action-mapping.  The client-side
JavaScript works fine to notify the user that firstName and lastName are
required fields - but the server-side validation never kicks in.  This used to
work fine in the nightly build I had from December.  I added some code to my
Action to verify that there were errors is validate() was called on my form:

        errors = personForm.validate(mapping, request);
        if (!errors.isEmpty()) {
                log.debug("ERROOOOOOOOOORRRRRRRRRSSSSSSSSSS");
        }

And when I run this, in my console I get:

PersonAction.save(89) | Entering 'save' method
PersonAction.save(100) | ERROOOOOOOOOORRRRRRRRRSSSSSSSSSS

I guess I'll back out the 1.2 upgrade and go back to the nightly build from
December. ;-)

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

Reply via email to