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
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
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:
MyException
/myexception.html
the servlet spec[1] has a complete description in
section SR
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
Molloy To: "Tomcat Users List"
<[EMAIL PROTECTED]>
opher
K. St. John" To: Tomcat Users List
<[EMAIL PROTECTED]>
Subject: Re: Redirect after
> Molloy To: "Tomcat Users
> List" <[EMAIL PROTECTED]>
>
> les.com> Subject: Re:
> Redirect after session expires?
>
>
> 02/13/02
>
>