I know that this has been addressed before, however, I don't think it has ever been followed to conclusion.

In WW1 I am trying to chain two actions together (See actions.xml snipet below for action configuration). Details.action retrieves information from a database based on a companyId that is passed into it as a parameter. ToggleNotification is only invoked from Details and has a parameter of companyId. When it is invoked it modifys values in the database and then chains to Details.action.

One would think that since both actions require the 'companyId' parameter and that ToggleNotification is chained to Details that they would both complete successfuly. However, Details actually throws a NullPointerException because 'companyId' is never set when Details.action is executed in this particular chain.

Is this expected behavior. Is there a work around short have having to make the Details action ServletRequestAware and get the parameters myself?

Thank you,

Chris

<!-- actions.xml -->
<action name="Details" alias="Details">
   <view name="success">details.jsp</view>
</action>

<action name="ToggleNotification" alias="ToggleNotification">
   <view name="success">Details.action</view>
</action>



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to