Anne, mapping.getInput() will only give you a String and will only have a value if the action-mapping in struts-config.xml specifies an 'input' attribute.
The validate method will always get called when you submit information from the form (unless you change the defaults, but I'm assuming you haven't). Since the ActionForm's fields are automatically populated when the form is submitted, there's no need for you to retrieve these from anywhere. Look at the struts-example - that has a very basic implementation of the validate method. Lindsay -----Original Message----- From: Anne Racel [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 17:06 To: mvc-programmers Subject: [MVC-Programmers] validation Does anyone have a good example of using the ActionForm validate method? I was surprised to find that 'mapping.getInput()' is null, and haven't figured out how to tell it what it needs. Anne Racel Senior Programmer Mantech International, Inc. (757) 282-7454 [EMAIL PROTECTED] _______________________________________________ MVC-Programmers mailing list [EMAIL PROTECTED] http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers _______________________________________________ MVC-Programmers mailing list [EMAIL PROTECTED] http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers