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
`Object` | `getFreemarkerModels(ValueStack stack, HttpServletRequest req, 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,
                               HttpServletRequest req,
                               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

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-2007 Apache Software Foundation. All Rights Reserved.