IllegalStateException

Login.jsp - will set two sessions (name & privilege) whenever new user login.

CheckUser.jsp - will check whether user has logged in & have sufficient privilege.

All other files will call CheckUser.jsp through<%@ include file=擟heckUser.jsp?%>.

CheckUser.jsp works fine when called from browser directly. CheckUser also handlesIllegalStateException..

But when called from other file using include directive it reports HTTP Status 500 server Erroronly when the user is not logged in (ie session not set). But works fine when user is logged in properly.

It reports

type Exception report

message

description : The server encountered an internal error() that prevented it from fulfillingthis request.

exception : java.lang.IllegealStateException

.厖?

Plz tell me how to resolve this problem.

Thanks in advance

[969 byte] By [csnewbiea] at [2007-10-2 12:15:51]
# 1
How to handle IllegalStateException?
csnewbiea at 2007-7-13 9:01:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Check whether session is properly set or not.IllegalStateException is thrown when u try to access a session object which is not set
d-evila at 2007-7-13 9:01:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...