Re: Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
>> Yeah > > Actually, you added a spelling mistake (+e on Privileg).  However, the > previous example would work fine.  So a hybrid of the two: Actually I had the spelling typo before, but now saw that in english it is with +e > Yeah You are right, this works. After all I am not sure why I hav

RE: Creating menu bar based on session information

2011-04-15 Thread Biesbrock, Kevin
> Yeah Actually, you added a spelling mistake (+e on Privileg). However, the previous example would work fine. So a hybrid of the two: Yeah is sufficient. Beez - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org F

Re: Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
> Login The correct syntax is: Yeah I really would enjoy some more debugging help in this area Cheers - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
> you could do something like this: > ... where (bool) > hasPrivilege(List,...) is a function in your action. sounds good. I actually have now that signature in an AbstractAction from which all the other extend: public boolean hasPrivileg(String role) { ... } In my JSP: Login I did not unders

Re: Creating menu bar based on session information

2011-04-15 Thread Markus Demetz
you could do something like this: ... where (bool) hasPrivilege(List,...) is a function in your action. Markus Am 15.04.2011 13:57, schrieb Christian Grobmeier: Hi all, this is probably a trivial question, but I am unsure how to solve it best. I have an object User user. It has the properti

Creating menu bar based on session information

2011-04-15 Thread Christian Grobmeier
Hi all, this is probably a trivial question, but I am unsure how to solve it best. I have an object User user. It has the properties name, password and List roles. Now I would like to create a navigation bar in my struts 2.2.1 jsp pages. I wanted to avoid huge chunks of logic in my code. Theref