I am using tomcat's session object, but i store a magic string in the session that i need to decode to see if it's a valid magic string and populate a LoginSession object if they're logged in... i was just hoping to do it without having some code at the top of every page, but it's not looking too possible atm... :(
-Josh "Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce." ----- Original Message ----- From: "Nikola Milutinovic" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Josh" <[EMAIL PROTECTED]> Sent: Friday, August 16, 2002 3:18 PM Subject: Re: Action before doGet / doPost?? > > Hi, > > I'm wondering if there's a way to get some code called before > > doGet/doPost? I want to build a superclass for my JSP pages that checks for > > some login stuff and redirects if it's not found, without having to put the > > detect code in every page. > > That is a job for Servlet Container (Tomcat in this case). Servlets and JSPs can implement their own auth/login service, via sessions, but why re-invent the wheel? > > Nix. > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>