org.apache.struts2.views

## Interface TagLibraryModelProvider

- All Known Implementing Classes:
    DefaultTagLibrary

      public interface TagLibraryModelProvider

  Provides Freemarker implementation classes for a tag library

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `getModels(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.

- - ### Method Detail

    - #### getModels

          Object getModels(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

Copyright © 2000–2026 Apache Software Foundation. All rights reserved.