]
Subject: RE: Want to check user is logged in every page server]
Hi Jeff,
In your code, you keep the token in the ServletContext
rather than in the user session.
>
(String)getServletContext().getAttribute(SeamConstants.LOGGEDINVAR);
Isn't the ServletContext shared by all the users in
the app
}
> }
> }
> return status;
> }
> }
>
> -----Original Message-
> From: Thinh Doan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 13, 2002 10:21 AM
> To: Struts Users Mailing List
> Subject: RE: Want to check user is logg
return false;
}
}
}
}
return status;
}
}
-Original Message-
From: Thinh Doan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 10:21 AM
To: Struts Users Mailing List
Subject: RE: Want to check user is logged in every page server]
Regis,
Would you please give some code example on how you extended the
ActionServlet on how you did it? Thanks,
Thinh
-Original Message-
From: RĂ©gis Melo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 11:22 AM
To: 'Struts Users Mailing List'
Subject: RES: Want to check us
Question about that solution:
isnt it so that the user will be checked ONLY when you try to submit a page?
Or does ActionServlet get activated as well when you request a jsp? I didnt
think this would happen, so the user credentials will only be checked if you
go to *.do.
Gr
Ronald
> -Origi
Hi,
with a servlet 2.3 engine (like Tomcat 4,...) you could write a filter checking
for this and then either let the user proceed (if logged on) or reroute to
a login-page (if not).
regards
Alexander
-Original Message-
From: Antony Stace [mailto:[EMAIL PROTECTED]]
Sent: Monday, January
To: Struts Users Mailing List
Subject: Re: Want to check user is logged in every page server
create a bean that represents a user during the login-action processing. add
it to the session in your action.
on every following page, do a check for a bean representing the user. if not
present, do a
create a bean that represents a user during the login-action processing. add
it to the session in your action.
on every following page, do a check for a bean representing the user. if not
present, do a forward to the login-page.
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday,
Can't you just use Container managed security and set a constraint for each
action that requires a user to be in a role called user?
Not that I've tested it yet (but will be doing this week)
Rick Lawson
Infrastructure Specialist
Napp Pharmaceutical Group
-Original Message-
From: Moos
One way would be to create an abstract layer underneath the action layer
that defines an abstract method similar to the perform() method. Then you
could 'wrap' processing around the call the the abstract method which your
concrete subclasses implement.
- Original Message -
From: <[EMAIL P
Have a look at struts-example (war file comes with struts)
I think you can learn a lot from there.
hth,
tomK
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 20 november 2001 10:42
> To: Struts Users Mailing List
> Subject: Want to check user is
11 matches
Mail list logo