O'Reilly logo

Struts Kick Start by Kevin Bedell, James Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required