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 2004/02/28 21:19:55 UTC

DO NOT REPLY [Bug 27317] New: - Server-side validation not called when validate="true"

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: struts-dev@jakarta.apache.org
        ReportedBy: matt@raibledesigns.com


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: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org