O'Reilly logo

Struts 2 in Action by Scott Stanlick, Chad Michael Davis, Don Brown

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

Part 3. Building the view: tags and results

In part 2, we learned how the core of the framework processes each request. In particular, we learned how to write actions that contain the logic for each request, wrap that action logic with a stack of the appropriate interceptors, and take advantage of the framework’s powerful data transfer and type conversion mechanisms. Though we’ve been using JSP pages to render simple views for our actions, we haven’t gone into any of the details of the view layer. We now enter the part of the book that focuses on the view layer.

In Struts 2, the MVC view concerns are encapsulated in the result component. We’ve already become somewhat familiar with the result component even though we’ve said nothing regarding ...

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