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 like to know about any other possibilities, also. Thanks --Michael On Wed, 13 Feb 2002 15:37:53 +0000 David Cassidy <[EMAIL PROTECTED]> wrote: > 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. > > > > However, when their session expires and they try to access a jsp, they get a >NullPointerException, as expected. > > > > How can I catch that error and redirect them to the logon page? Or is their some >other way to handle it? Is there a better way than putting some if else statements in >the jsp to check the session for the menu object? > > > > Thanks > > --Michael > > > > -- > > To unsubscribe: <mailto:[EMAIL PROTECTED]> > > For additional commands: <mailto:[EMAIL PROTECTED]> > > Troubles with the list: <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
