Chapter 7. View Components: What the End User Sees


Chapter 7. View Components: What the End User Sees

IN THIS CHAPTER

  • The ActionForm

  • JSP Files: The Alpha and the Omega

  • The Perils of Automatic Type Conversion

  • The html:errors Tag

  • Internationalization

  • Conclusions

When you look at Struts in relationship to the MVC pattern, the view component is probably the easiest one to map directly from MVC to Struts entities.

In Struts, the view is implemented by the JSP pages themselves and the ActionForm s that interact with them. They are also the easiest part to understand conceptually because to some extent they work like traditional servlets or pure JSP user interfaces.

This chapter discusses the view in isolation from the rest of Struts. As a result, certain details (for example, how an action name in a form tag is mapped to an ActionForm and what happens after a form is validated ) have been put off until the next chapter.



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