You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Norr, Peter" <pn...@lehman.com> on 2003/07/25 16:07:31 UTC

Validation and Multi-Page Forms

I have one form bean in session scope, where the values get populated over
time through a series of pages, like a wizard.

My question is how do I validate on a page by page basis?  I am using the
Validator Framework.

Thanks,

Peter



------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Validation and Multi-Page Forms

Posted by Erez Efrati <er...@netmedia.net.il>.
Peter, 
You should take a look at the example bundled with Struts -
"struts-validator" it shows exactly how to validate by page basis.

For example (taken from my configuration):

			<!-- username -->
			<field	property="username)"
					depends="required, mask"
					page="1">
					<msg name="mask"
key="logon.username.maskMsg"/>
					<arg0 key="logon.username"/>
					<var>
	
<var-name>mask</var-name>
	
<var-value>${username}</var-value>
					</var>
			</field>

Hope it helps,
Erez


-----Original Message-----
From: Norr, Peter [mailto:pnorr@lehman.com] 
Sent: Friday, July 25, 2003 4:08 PM
To: 'Struts Users Mailing List'
Subject: Validation and Multi-Page Forms

I have one form bean in session scope, where the values get populated
over
time through a series of pages, like a wizard.

My question is how do I validate on a page by page basis?  I am using
the
Validator Framework.

Thanks,

Peter



------------------------------------------------------------------------
------
This message is intended only for the personal and confidential use of
the
designated recipient(s) named above.  If you are not the intended
recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be
regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed
to be
secure or error-free.  Therefore, we do not represent that this
information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org