Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Manohar Karamballi
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic