O'Reilly logo

MySQL™ and JSP™ Web Applications: Data-Driven Programming Using Tomcat and MySQL by 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

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 ...

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