HDIV API 2.0.4

org.hdiv.views
Class HDIVTagLibrary

java.lang.Object
  extended by org.hdiv.views.HDIVTagLibrary
All Implemented Interfaces:
org.apache.struts2.views.TagLibrary

public class HDIVTagLibrary
extends java.lang.Object
implements org.apache.struts2.views.TagLibrary

Provides Velocity and Freemarker implementation classes for a tag library.

Author:
Gorka Vicente

Constructor Summary
HDIVTagLibrary()
           
 
Method Summary
 java.lang.Object getFreemarkerModels(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Gets a Java object that contains getters for the tag library's Freemarker models.
 java.util.List<java.lang.Class> getVelocityDirectiveClasses()
          Gets a list of Velocity directive classes for the tag library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HDIVTagLibrary

public HDIVTagLibrary()
Method Detail

getFreemarkerModels

public java.lang.Object getFreemarkerModels(com.opensymphony.xwork2.util.ValueStack stack,
                                            javax.servlet.http.HttpServletRequest req,
                                            javax.servlet.http.HttpServletResponse res)
Gets a Java object that contains getters for the tag library's Freemarker models. Called once per Freemarker template processing.

Specified by:
getFreemarkerModels in interface org.apache.struts2.views.TagLibrary
Parameters:
stack - The current value stack
req - The HTTP request
res - The HTTP response
Returns:
The Java object containing the Freemarker model getter methods

getVelocityDirectiveClasses

public java.util.List<java.lang.Class> getVelocityDirectiveClasses()
Gets a list of Velocity directive classes for the tag library. Called once on framework startup when initializing Velocity.

Specified by:
getVelocityDirectiveClasses in interface org.apache.struts2.views.TagLibrary
Returns:
A list of Velocity directive classes

HDIV 2.0.4

Copyright © 2008 hdiv.org. All Rights Reserved.