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]>

Reply via email to