Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2378

Decorator patterns don't work in struts2-sitemesh-plugin. Only works the pattern /* or *.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • None
    • 2.1.1
    • Plugin - SiteMesh
    • None
    • Important

    Description

      Joe. In file PageFilter.java (about line 52) after executing this line

      // parse data into Page object (or continue as normal if Page not parseable)
      Page page = parsePage(request, response, chain);

      some of the attributes of the request object changes. One of them is _servletPath and its value is set to empty String "". This causes that the method public Decorator getDecorator( HttpServletRequest request, Page page ) in file ConfigDecoratorMapper.java fails finding a pattern. In the first line of this method I see this line:

      String thisPath = request.getServletPath();

      So thisPath is the emptyString.

      This causes that only the /* and * patterns works when using struts2 + sitemesh.

      Are you agree with me?

      Thanks.

      Attachments

        Activity

          People

            jwalnes1 Joe Walnes
            yngwuoso Ernesto Salgado Suárez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: