This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java 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
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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!

Uh oh, we're definitely being carded. Here, show him this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!