wood burning stoves 2.0*
The moose likes Struts and the fly likes Dynamic Population of check box using <logic:iterate> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dynamic Population of check box using <logic:iterate>" Watch "Dynamic Population of check box using <logic:iterate>" New topic
Author

Dynamic Population of check box using <logic:iterate>

namita sasa
Ranch Hand

Joined: Apr 20, 2009
Posts: 56
Hi,
I tried to search a lot but couldn't find any solution why this is happening. I am having problems with dynamically populating check boxes using struts. I want to display checkboxes in JSP for all types of club which are present in array 'allClub_type' and make only those 'checked' who are present in another array 'selectedClub_type'. The all club types are stored in DB and I am fetching it using query which gives result in recordG. The selected club types are also stored in DB and I am fetching it using query which gives result in recordF. Now, I want to display checkboxes for all club choices(total 10) but want to check only those who are present in selected.
I am getting following error:
Cannot find bean: "all" in any scope

My Jsp:



My action class:



My form Bean contains:



Any help is greatly appreciated!!
namita sasa
Ranch Hand

Joined: Apr 20, 2009
Posts: 56
Can anyone help me here? I am using this struts tag first time.
Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic Population of check box using <logic:iterate>