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

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

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