File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply 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
 
 
subject: validating nested lists in validation.xml - struts
 
Threads others viewed
validator plugin and validate() method needs to use together
how to do the basic validation(only confirm none of the fields is blank)
validator, same field, same formbean, diff JSP,diff validations
validation fron both ActionForm and struts inbuilt validtaion
Using Struts Validator &
IntelliJ Java IDE