Chapter 6. Building a view: tags
This chapter covers
- Working with data tags
- Controlling flow with control tags
- Surveying the miscellaneous tags
- Exploring the OGNL expression language
In this chapter, we’ll start looking at the Struts 2 tag library in detail. We’ll provide a good reference to the tags and clear examples of their usage. We’ll also finish exploring the Object-Graph Navigation Language (OGNL). We’ve already seen how OGNL is used to bind form fields to Java properties, such as those exposed on our action, to guide the framework’s automatic data transfer mechanism. In chapter 5 we learned about the type conversion aspects of OGNL in the context of data entering the framework.
Now, we’ll focus on the OGNL expression language (EL ...