This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) 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

help w.r.t to layout:collectionInput

rahul vasishta

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 vasishta

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

//something like
for (var i = 0; i <= <numberOfElements>; i++) {

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

Thanks in advance,

wood burning stoves
subject: help w.r.t to layout:collectionInput
It's not a secret anymore!