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

EJBs Fit with Model Components

As discussed earlier, Struts is a framework based on the Model-View-Controller (MVC) design pattern. It’s also been pointed out that one of the great strengths of MVC is the flexibility you have for implementing Model components. This explains why Struts has tag libraries for building View components and Action classes for building Controller components, but no specific classes for extending or implementing Model components.

That means you’ll most likely incorporate EJBs into your Struts project by accessing them as Model components from within your Action classes. You can access them directly from the Action class or you can build helper classes that hide the details of EJB access from the Action class—there’s ...

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