Hello,
 
we are using servlets on an apache webserver. Apache allows to use access control for example by using .htaccess files. From the servlet, I could do this by sending
 
        response.setHeader("WWW-Authenticate", "BASIC realm=\"users\"");
        response.sendError(response.SC_UNAUTHORIZED);
to the client.
And now the question: Apache allows to use the directive ErrorDocument in each .htaccess file so I can control where the client should go if they are unauthorized after x logon tries. Is it possible to do this from servlets ? E.g. something like:
 
      response.setHeader("401", "http://www.mydomain.com");
Thanks !
 
Bye bye
 
  Christian Schulz
 

Reply via email to