No status_code in error page when user is not authenticated (FORM authentication)

R

Reinier

Hi,

I am using a FORM authentication mechanisme with the following error
page:

<--cut-->
Integer code = (Integer)
request.getAttribute("javax.servlet.error.status_code");
String message = (String)
request.getAttribute("javax.servlet.error.message");
<--cut-->
Error code: <%= code %>
Error message: <%= message %>
<--cut-->

Everything works fine when the user is not authorised. But when the
user/password combination is not valid (code 401), I receive no
request attributes in my error page. So the output is:

Error code: null
Error message: null

According to the API I would have to get a 401 error code. I really
can't find anything on the net. Has someone an idea what can cause
this problem?

Thanks!
Reinier.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top