I have an error page that is handling my exceptions. Is it possible to access session data from within the error page when the request is forwarded to it upon an exception? I am getting a null when I do a session.getAttribute().

Alessandro A. Garbagnati

The error page is another jsp page and it works no different from from other pages, except that it has can access the implicit 'exception' object.

The only issue could be that the error could be occuring before you are setting the attribute in the session. In that case, your setAttribute() statement would not be reached and consequently in the error page, the getAttribute() would return you null.