Redirect after session expires?

2002-02-13 Thread Michael Molloy
I've got an application that builds menus when a user logs in and sticks the menus in an object which I then put inside the session. All subsequent jsps get their menu from that object in the session. However, when their session expires and they try to access a jsp, they get a NullPointerExcep

Re: Redirect after session expires?

2002-02-13 Thread David Cassidy
is there a session.isInvalid() method ? If so ... :) D Michael Molloy wrote: > I've got an application that builds menus when a user logs in and sticks the menus >in an object which I then put inside the session. All subsequent jsps get their menu >from that object in the session. > > Howe

Re: Redirect after session expires?

2002-02-13 Thread Michael Molloy
Well, we're trying to keep as much logic out of the jsps as possible, so if there is a setting for web.xml or something to foward all pages that throw exceptions to a certain url, that's what I'm looking for. I appreciate your suggestion, and if that's what we need to do, we'll do it, but I'd

Re: Redirect after session expires?

2002-02-13 Thread Christopher K. St. John
Michael Molloy wrote: > > ... if there is a setting for web.xml or something > to foward all pages that throw exceptions to a certain > url, that's what I'm looking for. > In web.xml: MyException /myexception.html the servlet spec[1] has a complete description in section SR

Re: Redirect after session expires?

2002-02-13 Thread Michael Molloy
I will check it out. Thanks very much for the information. --Michael On Wed, 13 Feb 2002 10:57:09 -0600 "Christopher K. St. John" <[EMAIL PROTECTED]> wrote: > Michael Molloy wrote: > > > > ... if there is a setting for web.xml or something > > to foward all pages that throw exceptions to a cer

Re: Redirect after session expires?

2002-02-13 Thread jeff . guttadauro
Molloy To: "Tomcat Users List" <[EMAIL PROTECTED]>

Re: Redirect after session expires?

2002-02-13 Thread jeff . guttadauro
opher K. St. John" To: Tomcat Users List <[EMAIL PROTECTED]> Subject: Re: Redirect after

RE: Redirect after session expires?

2002-02-13 Thread Jim Urban
> Molloy To: "Tomcat Users > List" <[EMAIL PROTECTED]> > > les.com> Subject: Re: > Redirect after session expires? > > > 02/13/02 > >