2012-04-15 21 views

答えて

0

私は、HttpServletResponseWrapperでFilterを使用しようとしましたが、JAAS Basic HTTP認証の前にフィルタが呼び出されませんでした。

<error-page> 
    <error-code>401</error-code> 
    <location>/error.jsp</location> 
</error-page> 

error.jsp:

<%@page contentType="text/html" pageEncoding="UTF-8"%> 
<!DOCTYPE html> 
<html> 
    <head> 
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
     <title></title> 
    </head> 
    <body> 
     <% 
     int status = response.getStatus(); 
     if (status == 401) { 
      response.setStatus(403); 
     } 
     %> 
    </body> 
</html> 
私は、web.xmlに次のコード

によって迷惑なポップアップウィンドウで自分の問題を解決しました

関連する問題