org.apache.struts2.views
Interface TagLibrary

All Known Implementing Classes:
DefaultTagLibrary

public interface TagLibrary

Provides Velocity and Freemarker implementation classes for a tag library


Method Summary
 Object getFreemarkerModels(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.
 List<Class> getVelocityDirectiveClasses()
          Gets a list of Velocity directive classes for the tag library.
 

Method Detail

getFreemarkerModels

Object getFreemarkerModels(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.

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

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

Returns:
A list of Velocity directive classes


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.