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 help w.r.t to layout:collectionInput Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "help w.r.t to layout:collectionInput" Watch "help w.r.t to layout:collectionInput" New topic
Author

help w.r.t to layout:collectionInput

rahul vasishta
Greenhorn

Joined: Sep 22, 2009
Posts: 7
Hi all,

How to validate input values of the layout:collectionInput using javascript? Or is there some other way of doing it?

<layout:collectionInput title="Email" property="mailID" formProperty="list[${index}].mailID"/>


Now in this case how to validate the input values provided for the E-mail?

-Rahul
rahul vasishta
Greenhorn

Joined: Sep 22, 2009
Posts: 7
can it be done by iterating through layout:collection ?

//something like
for (var i = 0; i <= <numberOfElements>; i++) {
window.document.getElementById(<mailID>+i).value;
}


If so how to iterate and acess elements of layout:collection using javascript?


Thanks in advance,

Rahul
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: help w.r.t to layout:collectionInput