You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Thielen <da...@windward.net> on 2003/08/13 03:02:29 UTC
How to validate page 1 in page 2 action/form (multi-page form)
Hi;
When the user clicks submit on page 2 of a form, I need to check page 1 also because they may have gotten to page 2 with a bookmark.
My page 1 validation is with the page 1 form validate. page 2 has a different form. Should I:
1.. Look for the page 1 form attached to the session and if it's not there, go back to page 1? And if so, how do I get that object?
2.. Call the page1 form validate and look at the return value? And if so, how do I get the object?
3.. Another approach?
thanks - dave
Re: How to validate page 1 in page 2 action/form (multi-page form)
Posted by Adam Hardy <ah...@cyberspaceroad.com>.
I would say your issue is in the flow of control area, rather than the
validation area, therefore I would choose 1 or some other mechanism that
does the same job.
Plus it would be easier and more intuitive than 2.
Adam
David Thielen wrote:
> Hi;
>
> When the user clicks submit on page 2 of a form, I need to check page 1 also because they may have gotten to page 2 with a bookmark.
>
> My page 1 validation is with the page 1 form validate. page 2 has a different form. Should I:
> 1.. Look for the page 1 form attached to the session and if it's not there, go back to page 1? And if so, how do I get that object?
> 2.. Call the page1 form validate and look at the return value? And if so, how do I get the object?
> 3.. Another approach?
> thanks - dave
--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org