It's is not there the first time. Only when it's been sent there by way of a failed validation via the input="/showForm.do" attribute.
>>>> [EMAIL PROTECTED] 02/02/04 05:18AM >>> >I think that the form is added to the request before >the call to execute(..). >Are you sure that (request.getAttribute("myForm") != null) >is not true the first time you call the page? > -----Messaggio originale----- > Da: Ian Joyce [mailto:[EMAIL PROTECTED] > Inviato: lunedi 2 febbraio 2004 13.09 > A: [EMAIL PROTECTED] > Oggetto: Re: R: request attributes and failed validation > > > >>> [EMAIL PROTECTED] 02/02/04 03:18 AM >>> > > Using an Action as "input" sometimes takes more work. Your > action should > > know that it's only redisplaying a form and not reset all form > values (or > > else the user will have to reinput everything instead of just > correct the > > validation error). > > > How do you usually do this? Using an hidden parameter? > > > That's one way to do it. This is how I ended up doing it. > > // Validation failed, don't reset the form. > if (request.getAttribute("myForm") != null) { > return mapping.findForward("success"); > } > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]