return error code from jsp custom tag's doStartTag() or doEndTag()

456 views Asked by At

I want to send error code as response from jsp custom tag but it doesn't work. Currently it looks like this:

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

There are 0 answers