Tiles
  1. Tiles
  2. TILES-94

[Standalone Tiles] Add Application Listener

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      Description

      Add an application listener that can replace TilesServlet in Servlet 2.3+ containers. It will contain the same
      functionality as TilesServlet.

        Activity

        Hide
        Matt Raible added a comment -

        Created an attachment (id=17721)
        TilesListener with same functionality as TilesServlet

        Here's a TilesListener I created with the same functionality as TilesServlet.
        I didn't write a test for it, but I was able to replace my TilesServlet with
        this listener and it all worked.

        In web.xml:

        <context-param>
        <param-name>definitions-config</param-name>
        <param-value>/WEB-INF/tiles-config.xml</param-value>
        </context-param>

        ...

        <listener>

        <listener-class>org.apache.tiles.listener.TilesListener</listener-class>
        </listener>

        This could use some polishing for sure, but it works!

        Show
        Matt Raible added a comment - Created an attachment (id=17721) TilesListener with same functionality as TilesServlet Here's a TilesListener I created with the same functionality as TilesServlet. I didn't write a test for it, but I was able to replace my TilesServlet with this listener and it all worked. In web.xml: <context-param> <param-name>definitions-config</param-name> <param-value>/WEB-INF/tiles-config.xml</param-value> </context-param> ... <listener> <listener-class>org.apache.tiles.listener.TilesListener</listener-class> </listener> This could use some polishing for sure, but it works!

          People

          • Assignee:
            Unassigned
            Reporter:
            Greg Reddin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development