Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2558

Can't use an action path in a tiles:insert with ComposableRequestProcessor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.0, Nightly Build
    • 1.3.5
    • Core
    • None
    • Operating System: other
      Platform: Other
    • 36367

    Description

      I'm pretty sure this worked with Struts 1.2.x, although I never used it; but I
      just decided to try implementing something using an action as the path of a tile.

      I can probably implement my functionality using a Controller instead, but I
      thought i'd file this bug, especially if this is functionality which was in an
      earlier version of Struts.

      This may end up being a non-issue if we are moving towards externalizing Tiles
      from Struts; then again, it could be solved by changing the PerformForward
      action to do a test for response.isCommitted() and always using
      requestDispatcher.doInclude(req,resp) when it is. At first glance, I don't see
      any reason why that would be particularly bad, no matter what is happening with
      Tiles.

      Any opinions?

      java.lang.IllegalStateException: Cannot forward after response has been
      committed at
      org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:371)
      at
      org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:359)
      at
      org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:95)
      at
      org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:55)
      at ...

      Attachments

        Activity

          People

            Unassigned Unassigned
            germuska Joseph Lad Germuska
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: