Re: Dynamic roles web.xml

2006-03-27 Thread Alessandro Colantoni
Hi Mark Just to tell that I finished my job and all work well. Thanks a lot to guide me Now I have a taglib that does for example if the user in session is related with at least one role that is related with at least one of the permissions in list the job is done. On 3/17/06, Alessandro Colant

Re: Dynamic roles web.xml

2006-03-17 Thread Alessandro Colantoni
On 3/17/06, Mark Lowe <[EMAIL PROTECTED]> wrote: >Hang on!!! You've an admin form where you have dynamic roles, right? >And you've no means of knowing what these will be.. And what they are >denying access to.. Doing this with your proposed taglib wont help >solve this.. Your tag or jsp bean is goi

Re: Dynamic roles web.xml

2006-03-17 Thread Mark Lowe
On 3/17/06, Alessandro Colantoni <[EMAIL PROTECTED]> wrote: > Hi! again!! > Of course I'm Italian, but at moment I'm living in Spain for work, so just > the same continent .! > At the end I will choose the jsp solution with taglib (I'm gonna write my > permission taglib now!) 'cause reference pages

Re: Dynamic roles web.xml

2006-03-17 Thread Alessandro Colantoni
Hi! again!! Of course I'm Italian, but at moment I'm living in Spain for work, so just the same continent .! At the end I will choose the jsp solution with taglib (I'm gonna write my permission taglib now!) 'cause reference pages in database can be too much work and in some case I have permissions

Re: Dynamic roles web.xml

2006-03-17 Thread Mark Lowe
On 3/17/06, Mark Lowe <[EMAIL PROTECTED]> wrote: > On 3/17/06, Alessandro Colantoni <[EMAIL PROTECTED]> wrote: > > Hi! and good morning (but probably we 're on different continents) Assiming you're in italy, we're in the same country.. > > > > I don't undertand the last pos where you say. > > >I

Re: Dynamic roles web.xml

2006-03-17 Thread Mark Lowe
On 3/17/06, Alessandro Colantoni <[EMAIL PROTECTED]> wrote: > Hi! and good morning (but probably we 're on different continents) > > I don't undertand the last pos where you say. > >I had the impression he already had.. I don't get how posting this > >helps, i must have misunderstood something.. Ca

Re: Dynamic roles web.xml

2006-03-17 Thread Alessandro Colantoni
Hi! and good morning (but probably we 're on different continents) I don't undertand the last pos where you say. >I had the impression he already had.. I don't get how posting this >helps, i must have misunderstood something.. Can you explain please? Anyway thanks for accurate explication. I'll g

Re: Dynamic roles web.xml

2006-03-16 Thread Mark Lowe
On 3/17/06, Mark Space <[EMAIL PROTECTED]> wrote: > Alessandro Colantoni wrote: > > > Thanks for rapid answer! > >What do you mean with filter the roles of second level. > >How can I do that? if they are not in the auth-constraint and in the role > >name list they can't access. > >have O to write a

Re: Dynamic roles web.xml

2006-03-16 Thread Mark Lowe
On 3/17/06, Mark Space <[EMAIL PROTECTED]> wrote: > Alessandro Colantoni wrote: > > > Thanks for rapid answer! > >What do you mean with filter the roles of second level. You can still use container based authentication. Especially if you're already setup to do so.. Just make sure that all users ha

Re: Dynamic roles web.xml

2006-03-16 Thread Mark Space
Alessandro Colantoni wrote: Thanks for rapid answer! What do you mean with filter the roles of second level. How can I do that? if they are not in the auth-constraint and in the role name list they can't access. have O to write a filter class? in this class retrieve the role of the user and if i

Re: Dynamic roles web.xml

2006-03-16 Thread Alessandro Colantoni
Thanks for rapid answer! What do you mean with filter the roles of second level. How can I do that? if they are not in the auth-constraint and in the role name list they can't access. have O to write a filter class? in this class retrieve the role of the user and if is one of the second level skip

Re: Dynamic roles web.xml

2006-03-16 Thread Mark Lowe
To my knowledge the servlet config is frozen on start up.. My guess would be that you'll need to have a general access role or roles (those that wont be deleted/modified in your database.. And then have a second level of access control in your application.. At this point it would be easier just ha

Dynamic roles web.xml

2006-03-16 Thread Alessandro Colantoni
Hi all! In my application I need to define roles dynamically. I need to create and delete roles and associate them to a permissions table. I want the user authenticate with a form. The problem is that in web.xml I have to define statically the role names. This is the involved piece of my web.xm