|
1. From what I see here you redirect from index.jsp to submit.do. 2. The submit.do action is defined to have validation. 3.*My guess* is that validation fails, and you are returned to your input page (input="submit.jsp") and the execute method is *not* executed 4. You submit a form from submit.jsp to submit.do, validation succeeds, execute() executes normally To fix this you would need a new action which has validation turned off (if i remember correctly, unless there is some other way to do it) eg <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>
and <action path="/submitInit"
type="segev.SubmitAction"
name="submitForm"
scope="request">
<forward name="success" path="/submit.jsp"/>
<forward name="failure" path="/submit.jsp"/>
</action>
index.jsp should change to<%@ taglib uri="/tags/struts-logic" prefix="logic" %> <logic:redirect forward="submitInit"/> Eli Segev wrote: Wendy, I know that the method is not executed, because I put a 'print' statement as the first line in the method. The 'print' statement does not appear initially in Tomcat. It does appear only after submitting the form. I also added a no-arg constructor for the action class. It is used only after a form has been submitted.Wendy Smoak <[EMAIL PROTECTED]> wrote: From: "Eli Segev" -- Jason Lea |
No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.9 - Release Date: 2005.01.06
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

