Package org.apache.struts2.views

# Class DefaultTagLibrary

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

All Implemented Interfaces:
  `TagLibraryModelProvider`

public class DefaultTagLibrary extends Object implements TagLibraryModelProvider
The default Struts tag library

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultTagLibrary()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `getFreemarkerModels(ValueStack stack, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)`
  `Object`
  `getModels(ValueStack stack, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)`
  Gets a Java object that contains getters for the tag library's Freemarker models.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DefaultTagLibrary

    public DefaultTagLibrary()

- ## Method Details

  - ### getModels

    public Object getModels(ValueStack stack, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)
    Description copied from interface: `TagLibraryModelProvider`
    Gets a Java object that contains getters for the tag library's Freemarker models. Called once per Freemarker template processing.
    Specified by:
      `getModels` in interface `TagLibraryModelProvider`
    Parameters:
      `stack` - The current value stack
      `req` - The HTTP request
      `res` - The HTTP response
    Returns:
      The Java object containing the Freemarker model getter methods

  - ### getFreemarkerModels

    public Object getFreemarkerModels(ValueStack stack, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)