Hello, This is a plain JSP - HTML code: -------------------------------------------------------------- <% for(i=0; i<objUsers.size(); i++){ tmpuser=objUsers.getUser(i); %> <tr><td> <input type=checkbox name=user value=<%= tmpuser.getUserId()%>> <%=tmpuser.getUserId()%><td></tr> <% } %> ------------------------------------------------------------
After running the above code and view the html source then i can see: <tr><td> <input type=checkbox name=user value=chiru> chiru<td></tr> <tr><td> <input type=checkbox name=user value=deva> deva<td></tr> <tr><td> <input type=checkbox name=user value=ravi> ravi<td></tr> <tr><td> <input type=checkbox name=user value=selvam> selvam<td></tr> ------------------------------------------------------------------- Now I want to convert the above code to struts. For that how to design my form class to map the values from HTML to Form class and action class? Because Its array of checkboxes. How to write set and get methods in the form class. Pls help me. Regards, Ravi Kattamuri Systems Engineer MphasiS BFL Limited 139/1 Adithya Complex, Hosur Main Road Koramangala, Bangalore 560 095 Phone : +91 80 552 2713/14 Extn : 2150 www.mphasis.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>