`
学习随笔
  • 浏览: 17652 次
  • 性别: Icon_minigender_1
  • 来自: 东莞
文章分类
社区版块
存档分类
最新评论

Illegal to flush within a custom tag

阅读更多
今天使用公司的自定义标签 莫名出现
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();
	}


自己解决,无果
上网看了一下众大神的方法,资料甚少
于是大胆舍弃这句 一切正常~什么问题呢
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics