May I humbly suggest doing a redirect after you do your delete?
inside OrderMaintainAction, after the deletion:
// get the path we specified for "Content" in struts-config.xml
String path = mapping.findForward("Content").getPath();
// create the redirecting ActionForward we'll return
ActionForward redirect = new ActionForward();
redirect.setRedirect(true);
// append the order number that should be shown
redirect.setPath(path + "?orderNumber=" + nbr);
return redirect;
:)
Hubert
--- "Au-Yeung, Stella H" <[EMAIL PROTECTED]> wrote:
> Bascaily what I would like to accomplish is to delete a "part" from an
> order
> form and then re-query the database to display the list of parts.
>
> "DeleteOrder.jsp":
> - is a screen to confirm to delete part "XZY".
> - it is of type OrderForm
> - action = "/app/DeleteOrder"
> - "orderNumber is a hidden field and is equal to "123". This is the key to
> re-query the database later.
>
> "OrderSearchAction":
> - is the Action class to re-query the database with "orderNumber" after the
> deletion and re-display the list of parts on the next screen.
> I have this statement at the beginning of the Action class to retrieve
> "orderNumber ":
> String nbr = request.getParameter("orderNumber");
>
>
> Struts-config.xml:
> <action path="/app/DeleteOrder"
> type="com.cat.action.OrderMaintainAction"
> name="OrderFormBean"
> scope="request"
> validate="false">
> <forward name="Content" path="/app/ListOfOrder.exe" />
> <forward name="ContentError" path="/app/DeleteError.jsp"/>
> </action>
>
> <action path="/app/ListOfOrder"
> type="com.cat.action.OrderSearchAction"
> name="OrderSearchFormBean"
> scope="request"
> validate="false">
> <forward name="Content" path="/app/ListOfOrder.jsp"/>
> <forward name="ContentError" path="/app/OrderError.jsp"/>
>
> </action>
>
> So when I hit 'submit' on "DeleteOrder.jsp", I expect "orderNumber " to be
> visible in "OrderSearchAction" in the Request object but it is not.
> Thanks for any help.
>
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]