wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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,

It is sorta covered in the JavaRanch Style Guide.
subject: help w.r.t to layout:collectionInput
Similar Threads
can serveltfileter be used for serverside validation
Getting the following Exception
JMS reliability
DynaAction with validate method
Greetings All!