javax.servlet.ServletException:Illegal to flush within a custom tag
此错误是因为在JSP页面中的某一个自定义标签的doStartTag或doEndTag中用了out.flush,而其他的自定义标签没有导致。可以去掉out.flush。