-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
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
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
3 matches
Mail list logo