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

Unexpected Tiles recursion on JSP errors?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Build
    • 1.3.9
    • Tiles 1 Plugin
    • None
    • Operating System: other
      Platform: Other
    • 36806

    Description

      I'm developing an application which uses more layers of <tiles:insert> than I
      have often used in the past. It seems that when an error occurs during JSP
      execution within an inserted tile, something causes the wrapping tiles to be
      executed more than once.

      Sometimes, this is just visually annoying, as it may make a navigation element
      appear more than once when an error occurs; more recently, it has been more
      deeply annoying, because the recursive execution was showing me an error which
      was actually masking the true problem. It took me a long time to recognize this
      and turn to solving the root problem.

      One could probably test this just by writing some tile sets and using a
      scriptlet to throw an exception from a nested JSP. If I have some time, i'll
      try to do that, but right now I need to catch up for all the time lost by that
      masked error.

      I ascribe this problem to Tiles because when I changed one tiles:insert into a
      jsp:include, I saw one less level of nesting.

      Also of potential import: at least once while I was digging around, I seemed to
      get this nesting behavior in the absence of an exception – but at that point I
      was too frustrated to really be able to isolate the issue and the variables.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: