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,
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
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:
error-page
exception-type MyException /exception-type
location /myexception.html /location
/error-page
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 certain
To: Tomcat Users List
[EMAIL PROTECTED]
mmolloy@ncyccc:
les.com Subject: Re: Redirect after session
expires
: Redirect after session
expires?
02/13/02
session = httpServletRequest.getSession(false);
if (session == null) {
invalid session code...
}
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 10:14 AM
To: Tomcat Users List
Subject: Re: Redirect after session expires