<title>Error report</title>
</head>
<body>
<div id="prompt" class="prompt_box prompt_error">
<h4>HTTP Status <%=request.getAttribute("javax.servlet.error.status_code")%></h4>
<p class="showDetail" onclick="toggleCollapsed(false)" >details >></p>
<p class="hideDetail" onclick="toggleCollapsed(true)" ><< details</p>
<div id="detailBox" class="detail_box">
<table border="0" cellspacing="0" cellpadding="0" class="detail_table">
<tr>
<td class="detail_label">type</td>
<td class="td_detail_label"> Status report</td>
</tr>
<tr>
<td class="detail_label">message</td>
<td class="td_detail_label"> ${bme:html(errorview)}</td>
</tr>
<tr>
<td class="detail_label">description</td>
<% if(((Integer)(request.getAttribute("javax.servlet.error.status_code"))).intValue() == 403){%>
<td class="td_detail_label"> Access to the specified resource has been forbidden</td>
<%}else if(((Integer)(request.getAttribute("javax.servlet.error.status_code"))).intValue() == 404){%>
<td class="td_detail_label"> The requested resource ${bme:html(errorview)} is not available</td>
<%}else{%>
<td class="td_detail_label"> </td>
<%}%>
</tr>
<tr>
<td class="detail_label">suggestion</td>
<%if(((Integer)(request.getAttribute("javax.servlet.error.status_code"))).intValue() == 404){%>
<td class="td_detail_label">Please ensure the URL is existent</td>
<%}else{%>
<td class="td_detail_label"> </td>
<%}%>
</tr>
</table>
</div>
</div>
</body>
本文档详细介绍了如何处理HTTP状态错误代码,特别是403和404错误,并提供了相应的建议来帮助用户解决这些问题。
2634

被折叠的 条评论
为什么被折叠?



