You should reroute the user using <jsp:forward> or do a
response.sendRedirect() and then a return after it.
-Sashi Kolli
[EMAIL PROTECTED]
Brian Burridge
<brian_burridge@COXT To: [EMAIL PROTECTED]
ARGET.COM> cc:
Sent by: A mailing Subject: Session Expiring and Null
Pointer
list about Java
Server Pages
specification and
reference
<[EMAIL PROTECTED]
un.com>
09/28/99 08:08 AM
Please respond to
Brian Burridge
I've noticed that when the session expires (I'm using a session bean),
either because the time expired or I reset the server, that I always get
a null pointer exception. I finally tracked it down, and was surprised
to find, that even though at the top of each page I call a method to
check for a live session, and reroute the user to a different page to
give them a new session, that the original JSP page continues to run,
producing a null pointer when it tries to access data from the session
bean (which now no longer exists).
Any ideas how I can get around this?
--
Brian N. Burridge
Lead Internet Analyst
Cox Target Media Corporate Web Sites
Internet Technology Services
(727) 399-3000 Ext 3515
[EMAIL PROTECTED]
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html