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

Annotation support for setting parameters (defined in <action> tag) from struts.xml to associated action property

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.0.11.1
    • 2.1.0
    • Plugin - CodeBehind
    • None
    • Windows XP

    Description

      As per the issues reported (WW-1866, WW-1796 and WW-2016), Action annotation should also support populating the action properties from parameters defined in struts.xml.

      E.G. Action below.

      <action name="updatePk"
      class="com.mypk.pk1Action"
      method="update">
      <result type="tiles">XXX.detail</result>
      <result name="cancel" type="tiles">XXX.cancel</result>

      <param name="role">ROLE_XXX;ROLE_XXX;ROLE_XXX</param>

      </action>

      The Action annotation should have support for the param tag also. The role String (in above case) should be pk1Action. The pk1Action has the associated getRole( ) and setRole(String) method.

      Attachments

        Activity

          People

            Unassigned Unassigned
            apandit Ameya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: