Meaningless Drivel is fun!*
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validating nested lists in validation.xml - struts
 
Similar Threads
how to do the basic validation(only confirm none of the fields is blank)
validator plugin and validate() method needs to use together
Using Struts Validator &
validation fron both ActionForm and struts inbuilt validtaion
validator, same field, same formbean, diff JSP,diff validations