【JSP】 --Error 오류 페이지 설정, 성명식 이상 --188drp

1848 단어
xml 구성:
<error-page>
		<exception-type>com.bjpowernode.drp.util.ApplicationException</exception-type>
		<location>/error.jsp</location>
</error-page>

 
jsp 구성:
<%@ page contentType="text/html;charset=GB18030" %> 
<!-- --> <%@ page isErrorPage="true" %> <html> <head> <title> !</title> <meta http-equiv="content-type" content="text/html;charset=gb2312"> <style type="text/css"> <!-- .STYLE1 { font-size: 24px; font-weight: bold; color: #FF0000; } --> </style> </head> <body> <br> <br> <center> <table width="500"> <tr> <td align="center"><p align="left"><span class="STYLE1"> :</span></td> </tr> </table> <hr> <table width="500"> <tr> <td>
        <!-- Exception --> <%=exception.getMessage()%></td> </tr> <tr> <td align="center" colspan="2"> <p> <input type="button" name="goback" value=" " onClick="javascript:history.go(-1);"> </td> </tr> <tr> <td align="right" colspan="2"></td> </tr> <tr> <td align="right" colspan="2"></td> </tr> </table> </center> </body> </html>

좋은 웹페이지 즐겨찾기