struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghuveer" <raghuve...@infotechsw.com>
Subject Validations from Nested Tags Data
Date Mon, 24 Apr 2006 10:07:09 GMT
What are the possiable ways to Validate the data in
Actionform/DynaValidatorForm.

In below example.

txtCompany is the property in javabean(cBean).
In a collection(arlCollectionBeans) each row is a javabean(cBean).

Data is displayed by Nested Tags as below.

Example:
I want to validate for "mandatory","integer"

----------------------------------------
<nested:present name="cActionForm" scope="session">
<nested:notEmpty  name="cActionForm"  property="arlCollectionBeans" >
	<nested:size id="recordCount" name="cActionForm"
property="arlCollectionBeans"/>
		<nested:greaterThan name="recordCount"  value="0">
			<nested:iterate  id="cBean" name="cActionForm"
property="arlCollectionBeans" type="com.example.nested.CBean" indexId="i" >
				<tr><td><nested:text  property="txtCompany" /></td></tr
			</nested:iterate>
		</nested:greaterThan>
	</nested:notEmpty>
</nested:present>


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


Mime
View raw message