You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/09/25 22:14:16 UTC

DO NOT REPLY [Bug 23409] - Additional parameters for actions

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23409>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23409

Additional parameters for actions

j_cumps@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME



------- Additional Comments From j_cumps@yahoo.com  2003-09-25 20:14 -------
You can use the 'set-property' mechanism to add as many propertiest to an 
action as you need.

Example
   <action   path="/foo"
              type="com.foo.FooAction"
              name="fooForm"
              scope="request"
              validate="false">

      <set-property property="hello" value="HELLO"/>
      <set-property property="world" value="WORLD"/>

      <forward name="success"              path="/foo.jsp"/>

    </action>

This will set the 'hello' property of your action class to 'HELLO', and the 
world property to 'WORLD'.

You can use this mechanism to set additional properties to all configuarable 
objects in struts-config.xml

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org