Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts-menu Roles

 
Frank Bueckert
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been bashing my head against this for most of the day. I think I've narrowed the problem down to a single line, but I have absolutely no idea on how to fix it. Documentation has a little bit of help, but not what I'm looking for.

Problem: Implementing security roles yanked out of a database. Specific to users. If I set permissions="rolesAdapter" in the useMenuDisplayer tag, nobody gets anything. I set permissions=<custom permission adapter> and everyone gets everything. Obviously, something wrong is happening.
Checking my roles, they get added to the user class properly.

Code:


This is basically yanked straight out of the permissions example. My problem is that menus turns up as null, no matter what I attempt to do. Why?

So, that is my problem. What am I doing wrong?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic