今天使用公司的自定义标签 莫名出现
错误指向这里out.flush();
自己解决,无果
上网看了一下众大神的方法,资料甚少
于是大胆舍弃这句 一切正常~什么问题呢
java.io.IOException: Illegal to flush within a custom tag
at javax.servlet.jsp.tagext.BodyContent.flush(BodyContent.java:79)
错误指向这里out.flush();
public int doEndTag() throws JspException {
// TODO Auto-generated method stub
JspWriter out = pageContext.getOut();
try {
String html = getHTML().intern();
out.print(html);
[color=red]out.flush();[/color] } catch (Exception e) {
// TODO: handle exception
handleException(e);
}
return super.doEndTag();
}
自己解决,无果
上网看了一下众大神的方法,资料甚少
于是大胆舍弃这句 一切正常~什么问题呢