This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Grokking Bitcoin and have Kalle Rosenbaum on-line!
See this thread for details.
Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
  • Carey Brown
  • salvin francis
  • Claude Moore

Setting variables inside a list from the view  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I'm sorry if the title might seem misleading, but I didn't know exactly how to name it Well, here is my problem: I have a set operations, a set of (user)profiles, and which operations are available for which profiles (permissions). I want to show a list (jsp) with the operations in the first column, profiles in the first line, and checkboxes throughout this table to assign permissions. To do that, I set up an object like that:

ProfilePermission is used to actually set up the checkboxes in jsp, and it is declared like that:

In the Action, I have declared a list like this (with the approppriate getters and setters):

And, finally, the jsp section, to set up my table:

As far as I am aware, there is something odd with the "name" parameter in my checkboxlist tag, but I have already tried several different alternatives, and so far there is no way I can capture which boxes have in fact been checked. Could someone please lend me a helping hand?

Thank you very much!

no wonder he is so sad, he hasn't seen this tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!