You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Vikramjit Singh <vi...@gtllimited.com> on 2002/03/26 04:56:16 UTC

flush is illegal error

Hi everybody,

I am using the If tag in the utility.tld file. The tag works perfectly fine
but if i include a jsp in the if tag then it says 

java.io.IOException: Illegal to flush within a custom tag
	at javax.servlet.jsp.tagext.BodyContent.flush(BodyContent.java:87)
	at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:413)
	at
EIS._0002fEIS_0002fEIS_0005fNoClientBillBranch_0005fJ_00036_0002ejspEIS_0005
fNoClientBillBranch_0005fJ6_jsp_51._jspService(_0002fEIS_0002fEIS_0005fNoCli
entBillBranch_0005fJ_00036_0002ejspEIS_0005fNoClientBillBranch_0005fJ6_jsp_5
1.java:535)
	at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)

 BUT THE CODE WORKS PERFECTLY FINE WHEN I WRITE THE IF STATEMENT IN JAVA AND
NOT USING TAGLIBS. CUD ANYONE PLZ THROW SOME LIGHT ON IT.


Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-3140


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>