File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes JSP Tags..Writing body Content to Browser in doEnd Tag.. Problem.. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "JSP Tags..Writing body Content to Browser in doEnd Tag.. Problem.." Watch "JSP Tags..Writing body Content to Browser in doEnd Tag.. Problem.." New topic
Author

JSP Tags..Writing body Content to Browser in doEnd Tag.. Problem..

Manohar Karamballi
Ranch Hand

Joined: Jul 17, 2001
Posts: 227
Hai all!
I have a Tag X. Tag handler is as follows..
public class XHandler extends BodyTagSupport
{
public int doStartTag()
{
//balh...
}
public int doEndTag() throws JspException
{
//Remove Index...
pageContext.removeAttribute(BWConstants.INDEX);
//Write BodyContent to JSP Writer
try
{
if (bodyContent != null)
{
bodyContent.writeOut(getPreviousOut());
}
}
catch (IOException ioe)
{
throw new JspException(ioe.getMessage());
}
return EVAL_PAGE;
}
}
Some times while executing doEnd Tag i am getting the following error..

javax.servlet.jsp.JspException: Broken pipe
at com.nxcd.camp.presentation.tags.amp.StmtDisplayTagHandler.doEndTag(StmtDisplayTagHandler.java:149)
at jsp_compiled._account.__stmt_summary._jspService(__stmt_summary.java:1424)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:263)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:190)
at com.nxcd.camp.presentation.controller.CustomerControllerS.service(CustomerControllerS.java:304)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:263)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
I am unable to pointout what went wrong.. Pls drive me out of this problem..
Immediate response is needed...
Rgds & Thanks
Manohar
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JSP Tags..Writing body Content to Browser in doEnd Tag.. Problem..
 
Similar Threads
Help !!!! Struts struts.action.MESSAGE error
Help!!! Struts struts.action.MESSAGE error
Custom Tag with Body (addition of body content)
java.io.IOException:Broken pipe
Help!!! struts.action.MESSAGE error