Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

checkboxes with c tags  RSS feed

 
sdeep anand
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I get a list of values to be displayed in the jsp page. When its createnew
I display the entire list(String values) as checkbxes. In edit page I have to check the checkboxes only for the ones the user selected(this I get as different list). I know how to display using c tags for the createnew page.
For edit page how do I check only those checkboxes which the user has selected.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start with figuring out what the HTML should be to accomplish what you are after, and then write the JSP to produce that HTML.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!