Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic Population of check box using <logic:iterate>  RSS feed

 
namita sasa
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help me here? I am using this struts tag first time.
Thank you.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!