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

Get Struts 2 in Action now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.