The view in the Model-View-Controller (MVC) pattern is responsible for displaying the model and other objects. To access these objects from a JSP, you use OGNL (Object-Graph Navigation Language), the expression language Struts inherits from WebWork.
OGNL can help you do the following.
Bind GUI elements (text fields, check boxes, etc) to model objects and converts values from one type to another.
Bind generic tags with model objects.
Create lists and maps on the fly, to be used with GUI elements.
Invoke methods. You can invoke any method, not only getters and setters.
OGNL is powerful, but only part of its power is relevant to Struts developers. This chapter discusses OGNL features that you will need for Struts projects. If you’re interested ...