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

http://issues.apache.org/bugzilla/show_bug.cgi?id=29757

Action - From bean association

           Summary: Action - From bean association
           Product: Struts
           Version: 1.1 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Controller
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In our application, we have a JSP (form taking the user input values) that 
invokes two different struts actions based on different conditions. This is 
accomplished by doing a formObj.action="xxx.do" in the javascript handling the 
onSubmit event handler of the form. The different actions get executed for the 
two different submit buttons and no problems with that. We also have two 
different form bean classes associated with the two action classes. Now the 
issue is both the actions are invoked with the same (type of) form bean.

Say for ex., we have

<form-beans>
<form-bean name="ABean" type="com.adventnet.ABean" />
<form-bean name="BBean" type="com.adventnet.BBean" />
</form-beans>

<action path="AAction" type="com.adventnet.AAction" name="ABean" 
scope="request">
</action>
<action path="BAction" type="com.adventnet.BAction" name="BBean" 
scope="request">
</action>

The two action paths are invoked from a single jsp, and both the AAction and 
BAction classes seem to get form bean instance of type ABean only ! Whereas we 
expect BACtion to get BBean instance.

Please clarify if this is an issue with Struts.

Thanks,
Rajesh

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to