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 Strings. The ActionErrors 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset