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 how to use-  html:checkbox  - and iterate it through - logic:iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "how to use-  html:checkbox  - and iterate it through - logic:iterate " Watch "how to use-  html:checkbox  - and iterate it through - logic:iterate " New topic
Author

how to use- html:checkbox - and iterate it through - logic:iterate

ravin kacha
Greenhorn

Joined: Jul 18, 2007
Posts: 22
The question is clear that i want a group of checkboxes in a jsp and want to display checked checkbox, which are selected, on the other jsp.

this is what i have tried a bit

First jsp page:

Second JSP page

written the getter and setter methods in the form class and have taken an ArrayList for storing the checkbox object

when run the second jsp in browser it gives an error at the setter method of the formbean that - argument type mismatch -


please help me for this .....
thanks in advance...
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Since each hobby is a string and not a JavaBean, in the second JSP, change:

to


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to use- html:checkbox - and iterate it through - logic:iterate
 
Similar Threads
Indexed tags and form beans
how to populate formbean property using html:checkbox values
Checking Checkbox values in indexed form
how to add checkbox html tag?- urgent!
Retriving values from html:checkbox in a jsp