Win a copy of Learning Regular Expressions this week in the General Computing 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 ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Setting variables inside a list from the view  RSS feed

 
Greenhorn
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!

Thiago.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!