aspose file tools*
The moose likes Struts and the fly likes validating nested lists in validation.xml - struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validating nested lists in validation.xml - struts" Watch "validating nested lists in validation.xml - struts" New topic
Author

validating nested lists in validation.xml - struts

Krikor Krumlian
Greenhorn

Joined: Sep 24, 2004
Posts: 9
Hello All
I'm using validation.xml to validate some properties in beans so to do a simple validate we do :

<form name="someForm">
<field property="knumber" depends="required">
<arg0 key="someForm.knumber.label"/>
</field>
</form>

that's straight forward , Now if we have a list as one of the properties then
we do this

<field property="nestedprop" indexedListProperty="programs" depends="required">
<arg0 key="someForm.knumber.label"/>
</field>

Now that works too , The question what if we have a nested list in the above list what do we do ? Any ideas ? thank you
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: validating nested lists in validation.xml - struts
 
Similar Threads
Using Struts Validator &
validation fron both ActionForm and struts inbuilt validtaion
how to do the basic validation(only confirm none of the fields is blank)
validator, same field, same formbean, diff JSP,diff validations
validator plugin and validate() method needs to use together