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

Only first action with result type="XSLT" included in JSP by <s:action> is executed; the rest is ignored

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.11
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windoes XP/SP2; WebSphere Application Server v6.1.0.7

    • Flags:
      Important

      Description

      Declare two actions with result type="xslt".
      <action name="action1" class="someAction1">
      <result type="xslt" name="success"/>
      </action>
      <action name="action2" class="someAction2">
      <result type="xslt" name="success"/>
      </action>

      and one action with default result type:
      <action name="DealSearch">
      <result name="success">/showResult.jsp</result>
      </action>

      1. Include two <s:action> tags in showResult.jsp :
      <s:action name="action1" executeResult="true"/>
      <s:action name="action2" executeResult="true"/>

      2. Run DealSearch action.

      The issue is: the second action ("action2") will never be executed and its result never be included in output stream.
      Same happens even when 2nd action has property executeResult="false" with <s:property> tag followed.
      The problem does not depend on whether XSL template specified or not.

      Unlike with type="xslt" actions with default result type included by <s:action> are free from this problem.

      Suggestion: output stream might have been flushed and closed after handling the 1st action's result set.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mrdon Donald J. Brown
                Reporter:
                voronv Victor Voronenko
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: