Custom user roles and Action

2007-08-06 Thread Jim Theodoridis
Hello I am using my own security manager to login to a struts application. I am looking for a way to fires an action only when a user logs in have the rights permissions Any suggestions? - To unsubscribe, e-mail: [EMAIL

Re: Custom user roles and Action

2007-08-06 Thread Richard Sayre
I wrote a LoadApplication action that executes after my user has logged in. It checks the database to see what roes they have and it fills the session with a few variables such as admin = true; designer = false; etc. by default they are all false. Then I wrote an interceptor that checked

Re: Custom user roles and Action

2007-08-06 Thread Jim Theodoridis
I wrote a LoadApplication action that executes after my user has logged in. It checks the database to see what roes they have and it fills the session with a few variables such as... I am thinkng to do the same with filter is it possible? I am using DispatchAction alot is it possible to allow

Re: Custom user roles and Action

2007-08-06 Thread Richard Sayre
An interceptor is exactly like a filter. I runs before and after an action executes. Check out the following: http://struts.apache.org/2.x/docs/interceptors.html http://struts.apache.org/2.x/docs/writing-interceptors.html Also the 'FAQ section at the bottom of the first like has some useful

Re: Custom user roles and Action

2007-08-06 Thread Jim Theodoridis
tnx a lot but i am using struts 1.2.9 and at pressent time its difficalt to upgrade to struts 2.x Richard Sayre wrote: An interceptor is exactly like a filter. I runs before and after an action executes. Check out the following: http://struts.apache.org/2.x/docs/interceptors.html