我想发送错误代码作为来自 jsp 自定义标签的响应,但它不起作用。目前它看起来像这样:
try {
response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
} catch (IOException e) {
LOGGER.error("Couldn't send error response code.", e);
}
return SKIP_PAGE;
我想发送错误代码作为来自 jsp 自定义标签的响应,但它不起作用。目前它看起来像这样:
try {
response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
} catch (IOException e) {
LOGGER.error("Couldn't send error response code.", e);
}
return SKIP_PAGE;