Question: I have the following question:
I need to pass a parameter (for example ID ) when I finish a form and the action save the form's values, this will forward to the result = "success" and I need that the action that will be call in the success come with the ID and other parameters to later use in the next form for save this information (info-form2 and info.form1)...

for example:

**FORM1 ( USER ) ==== "success" ====> FORM2 ( ADDRESS )**

*userForm.html ===================> addressForm.html?user\_id=X ...(where X : Id passed throw of UserAction (method:save) to AddressAction (method:newAddress))*

Please I will appreciate your help

Thanks in advance

Answer: 
Not very clear what you want to do.

Looks like after successfull execution of an action, the request gets forwarded to another action. In the first action you want to pass parameter ID and use that in the 2nd action. Since both the actions are getting used in the same request call you can save the ID parameter in request like this

request.setAttribute("ID", iDValueObject);

In the second action you can extract the value of ID like this

request.getAttribute("ID");
This should work:

```
  <!--  Package Default -->
    <package name="**default**" extends="struts-default,json-default" namespace="/">
        <action name="noOp" class="com.web.myapp.action.NoOpAction">
           <result name="success" type="chain">
                    <param name="requiresValidation">true</param>
                    <param name="actionName">userAuthentication</param>
                    <param name="namespace">/user</param>
          </result>
        </action>   
    </package>
    <!--  Package User -->
    <package name="user" extends="struts-default,json-default" namespace="/user">
    <action name="userAuthentication" class="com.web.myapp.action.AuthenticateAction">
    ...
    </action>

```