A First Look at Struts

It's very easy to provide a complicated description of how MVC works. I'm going to try to provide a simple, if slightly incomplete version, using Struts as an example.

Struts is an Apache model 2 implementation. Describing Struts is a bit of a chicken-and-egg problem because you're really developing three pieces of the application at once. But it might be easier to understand by looking at it first from the perspective of a finished site.

NOTE

Struts was written by Craig McClanahan of Sun Microsystems. I'm grateful to Craig for suggestions that he made regarding this chapter. Assume that all mistakes are mine and that all golden nuggets are his.

A user loads myAccount.jsp, a normal JSP with some custom tag libraries loaded ...

Get MySQL™ and JSP™ Web Applications: Data-Driven Programming Using Tomcat and MySQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.