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

:action tag in jsp: Corresponding action class does NOT get the attributes from its including jsp's action.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.1
    • Component/s: Core Actions
    • Labels:
      None
    • Environment:

      XP Professional, tomcat 6.0.29, jdk 6 build 1.6.0.16

    • Flags:
      Important

      Description

      I was using struts 2.1.8.1 and EVERYTHING was working fine. ON friday Sept 10, I downloaded and installed struts 2.2.1 and found that the <s:action tag is NO LONGER working the way it was working in struts 2.1.8. Here is the problem:
      I have a search form, press submit > goes to editActivityReports.action ( initializes business objects like activityReport, etc ) > goes to corresponding JSP
      in this JSP I include <s:action name="loadBriefings" executeResult="true" /> > goes to loadBriefings.action in here I declared private ActivityReport activityReport with getter and setter methods; This object was already created by editActivityReports.action, so when I use struts 2.1.8.1 and got to this point the object was passed and populated with its data. Now with struts 2.2.1 the Object IS NULL. I am assuming this is a bug, because it works with struts 2..1.8.1 and it DOES NOT WORK with struts 2.2.1. Problem is that I have two other applications for which I'm having the same problem .

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lukaszlenart Lukasz Lenart
                Reporter:
                ajant Javier
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: