Jason, I tried your idea without any success. I start with the init page without any validation. Thanks.
Jason Lea <[EMAIL PROTECTED]> wrote: 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" index.jsp redirect to 'submit', which is defined as a global forward as 'submit.do'.If you're redirecting to submit.do, given the configuration you've posted,SubmitAction should be executing.What do you have in execute()? Why do you think it _isn't_ executing? Thething is... typically, the execute method does whatever it needs to do, thencalls mapping.getInputForward(). If execute isn't executing, how are youever getting to your form?Here's a guess: in SubmitAction.execute(), you're putting things in therequest, then *redirecting* to your form. If so, the browser will make anew request for the redirect, and the things you put in the original onewill be lost.I'd have to see SubmitAction.java and whether there is anything interestingin the log files in order to offer any further guesses. I can define it as 'submit.jsp', but there is no difference in behavior. No, that's definitely not going to fix it. Everything needs to go throughan action, which you seem to be doing. -- 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] __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com