From: "Eli Segev" <[EMAIL PROTECTED]>
> Here is the portion that defines the action:
>
> <action path="/submit"
> type="segev.SubmitAction"
> input="/submit.jsp"
> name="submitForm"
> scope="request"
> validate="true">
> <forward name="success" path="/submit.jsp"/>
> <forward name="failure" path="/submit.jsp"/>
> </action>
(Why have three different forwards pointing at the same page? No matter if
you call mapping.getInputForward(), mapping.findForward("success") or
mapping.findForward("failure"), you're going to end up at the same place!)
> Obviously this definition does not make the initial action go through the
'execute' method.
> I don't know what changes are necessary here. Any suggestions?
If you're going to do it this way, with a separate Action for submit, then I
suppose you'd need a PrepareAction to go with it.
> The starting page is index.jsp that looks like this:
> <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
> <logic:redirect forward="submit"/>
And this redirects them... where? Is it submit.do or submit.jsp that
appears in the browser? (Since it's a redirect, the browser URL should
change.)
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]