Overview of View Components in Struts Framework

Overview of View Components in Struts Framework

Previous Home Next

 

In this section We covers the View Components of Struts Framework.Struts view is represented by a combination of jsp, custom tag libraries and optional form bean object.

 The Apache Struts Framework does not specify a particular View technology. We can create View using JSP, custom tags,Velocity (Struts tools), JSF and XSLT.

JSP in struts Framework serve two main function:-
  • This accomplished using a set of custom tag that are focused on iterating and retrieving data forwarded to the target jsp by the Controller Action.
  • This view is used to gather the data required to perform a particular Controller Action.This is combination of tag libraries and Form object.
Apache Struts Framework provides some custom tag library for create View.

These are:
  • Bean Tags
  • HTML Tags
  • Logic Tags
  • Nested Tags
  • Tiles Tags
We can use JSTL and Struts-EL for create View .Struts provides Tiles for Create View .

ActionForm is used as render of View Data.Which will available for model.

Struts provide Internationalized ,Automatic Form Validation and Validator Frameworks as View Competent. 



Previous Home Next