Hmm cheers, I'll check it out -Josh
"Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce." ----- Original Message ----- From: "Jacob Kjome" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, August 16, 2002 3:38 PM Subject: Re: Action before doGet / doPost?? > Have you thought about using a Filter? filters can do pre and post > processing on requests/responses and you can map it to any set of servlets > or jsp's you want meaning that all your logic is in a single place and none > of the servlets/jsp's even know it is there so you don't even have to > account for it in your servlets/jsps. Also, you could use an > HttpSessionListener to run code at the start or the end of a session. > > Jake > > At 03:22 PM 8/16/2002 +1000, you wrote: > >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]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
