Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`java.lang.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.
`java.util.List<java.lang.Class>` | `getVelocityDirectiveClasses()` Gets a list of Velocity directive classes for the tag library.

Method Detail

### getFreemarkerModels

    java.lang.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

    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.

  Returns:
    A list of Velocity directive classes

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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