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

  • Follow


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.

0
Reply reinierlabee (2) 4/17/2007 12:21:05 PM


0 Replies
141 Views

(page loaded in 0.025 seconds)

5/19/2013 2:58:58 AM


Reply: