从jsp自定义标记的doStartTag()或doEndTag()返回错误代码

时间:2015-06-15 07:21:42

标签: java servlets jsp-tags custom-tags

我想从jsp自定义标记发送错误代码作为响应,但它不起作用。 目前它看起来像这样:

try {
     response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
} catch (IOException e) {
    LOGGER.error("Couldn't send error response code.", e);
}
return SKIP_PAGE;

0 个答案:

没有答案
相关问题