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
Class DefaultTagLibrary

    java.lang.Object
      org.apache.struts2.views.DefaultTagLibrary

All Implemented Interfaces:
  TagLibrary

    public class DefaultTagLibrary

extends Object
implements TagLibrary

The default Struts tag library

Constructor Summary
`DefaultTagLibrary()`

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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DefaultTagLibrary

    public DefaultTagLibrary()

Method Detail

### getFreemarkerModels

    public Object getFreemarkerModels(ValueStack stack,
                                      HttpServletRequest req,
                                      HttpServletResponse res)

  Description copied from interface: `TagLibrary`
  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 `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 List<Class> getVelocityDirectiveClasses()

  Description copied from interface: `TagLibrary`
  Gets a list of Velocity directive classes for the tag library. Called once on framework startup when initializing Velocity.

  Specified by:
    `getVelocityDirectiveClasses` in interface `TagLibrary`
  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.