Re: Simple authentication

2007-08-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Appel, appel wrote: > I need some simple login page for my web. There is only one account, and > I'll probably just hardcode the user/pass in the code. > > Can't figure out how to do it properly with the struts2 framework, been > googling and reading

Re: Simple authentication/authorization with Struts 2 using annotation

2007-07-19 Thread Mahdi Milani Fard
Here is a partial code that might help. It stores the current action (secured action) and the parameters in the session: if (actionSecured && !loggedIn) { System.out.println("Redirecting to login page"); Map session = actionInvocation.getInvocationContext().getSession(); ses

Re: Simple authentication/authorization with Struts 2 using annotation

2007-07-19 Thread Viplav Kallepu
Hi, Thank you for sharing the idea. I am also working on the authorization and authentication of my application. "The authentication interceptor checks the action method for @Secured annotation and checks the session to see if the user has logged in. If not, the target page and parameters are