Hi,
I'm using
Struts 1.3.10 and tiles working on a set of Actions all using the same ActionForm as follows:
EnterOrderForm -- extends ValidatorActionForm and contains a nested bean for 1-n rows of information boxes (one box per row)
EnterOrderAction --> simply puts together an order page that populates the EnterOrderForm when submitted. Works fine. Has a submit button to call next action (GetPricingAction). Uses EnterOrder.jsp There is no validation here
GetPricingAction --> performs calculations (calls business layer), stuffs calculated results into EnterOrderForm . Declarative validation (validation.XML) is turned on and input page is last action. Works fine. NO data entry here... this has only calculation and display capability. Has a submit button to call next action (PlaceOrderAction) -- uses GetPricing.jsp
PlaceOrderAction -->
does NOT work fine. Uses PlaceOrder.jsp for displaying data. There is no validation of previous form data, since no data was entered in the prior step. For some reason, the EnterOrderForm presented here is a newly initialized form-- NOT the one from the prior steps. I've confirmed this via debugging (looked at request object where last Action was supposed to place it) and dumped all scope fields on
JSP page. Page presents fine, and
no errors in the console. The EnterOrderForm is just null.
Form is scoped as "request" for all steps. Does anyone know why I can't get the form data from when it was entered into the PlaceOrderAction? that is, what might cause the EnterOrderForm to go to null?? Do I need all fields present on the form?
The code / config-- for your reference:
My Action configs:
Hoping someone sees something I don't.
_R