Friday, 26 February 2016

Tag Libraries in ATG



The ATG platform supports JSPs as its primary authoring format/front end. The ATG has two tag libraries namely:

  • ·         JSTL

  • ·         DSP

JSTL Tag LIB:

The JavaServer Pages Standard Tag Library (JSTL) from Sun Microsystems handles generic Web application tasks that are supported by all application servers. The JSTL tags can be classified, according to their functions, into following JSTL tag library groups that can be used when creating a JSP page:
·         Core Tags
·         Formatting tags
·         SQL tags
·         XML tags
·         JSTL Functions

 For More details on JSTL Tag Library: refer to (Oracle Docs or Tutorials Point)



DSP Tag LIB:
The DSP tag library lets you access all data types in ATG’s Nucleus framework. Other functions provided by these tags manage transactions and determine how to render data in a JSP. You should use tags from the DSP tag library only for tasks that involve ATG resources. For generic Web application tasks, use JSTL tags.
In pages that import the DSP tag library, you should generally favor DSP tags over equivalent JSP tags. In general, the corresponding DSP tag library tags provide enhanced functionality, such as support for the passing of object parameters between pages. In particular, use dsp:include and dsp:param rather than their JSP equivalents.
The DSP tag library supports both scripting and the JSP Expression Language. For example, the following two tags are equivalent:

<dsp:valueof param="<%= currentCourse %>"/>
<dsp:valueof param="${currentCourse}"/>


List of DSP taglibrary tags are explained in previous post (Click here for DSP tags details)

0 comments:

Post a Comment

 
;