I have a site using Struts 1.1 that works for my sample orders. I cut and pasted the code to work with sales orders. Most everything works except for one action.
When I call the sales order "New" through Javascript:
javascript:savedpage('/portal/salesOrderNew.do')
I don't get good results. The browser says it has displayed salesOrderNew.do. The JSP page is displayed without being filled with ActionForm data. The Action and LookupDispatchAction methods aren't even entered (debug code tells me so).
and create the required SalesOrderNewAction class I get desired results (a new sales order).
So my question is -- why won't my SalesOrderDispatchAction get called?
Thanks,
Jerome Mrozak.
Jerome Mrozak
Greenhorn
Joined: Feb 10, 2006
Posts: 13
posted
0
I have found my answer. The SalesOrderForm.validate() method was failing. It was being called prior to any SalesOrderDispatchAction method being called, and so returned the input page salesOrder.jsp without a backing SalesOrderForm being available.
Hard to debug because it looks like it is in the Struts blackbox. By substituting destination pages in the forwards, and having *those* work OK, was I able to narrow down where the failure was occurring.
Jerome.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.