Conclusions


The ActionForm and JSP page perform the duties of the view under Struts. The ActionForm is responsible for validation of the input from forms, and is handed off to the Action for actual processing with the model.

The ActionForm should contain no business logic, and should treat all of the input fields as String s. The ActionError s and ActionError classes are used to return validation errors from the ActionForm . If no errors are found, control passes to the Action .

The JSP page uses the html:text (and other) tags to tie the form to the ActionForm . It also can use the html:errors tag to display validation errors. The bean:message tag allows JSP pages to be internationalized.



Struts Kick Start
Struts Kick Start
ISBN: 0672324725
EAN: 2147483647
Year: 2002
Pages: 177

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net