Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

radio button validation using java script in a loop

843842Oct 29 2008 — edited Nov 10 2008
Hi,

I am getting data using result set in a servlet and its code is as follows
out.println("<tr bgcolor='#B5EAAA'><td><INPUT TYPE=RADIO NAME='Select' VALUE='"+rs.getString(1)+"'></td><td>"+rs.getString(1)+"</td><td>"+rs.getString(2)+"</td><td>"+rs.getString(3)+"</td><td>"+ rs.getString(4) +"</td><td>"+ ras +"</td><td>"+ han +"</td><td>"+ ress +"</td></tr>");

its getting looped and the name is same for all i.e Select and depending upon the tasks it will appear so i cannot use select[0].select[1],...

How to do the validation for that.

Thankx in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2008
Added on Oct 29 2008
6 comments
166 views