Hello all, thanks in advance if any one could help me to solve this.

I have written a custom tag which extends "BodyTagSupport", my problem is, i would like to include a jsp page in doAfterBody() method, i did that by using pageContext.include("resource.jsp"), the file is getting called but the html output is not getting rendered along with the tag's output, what might be the cause ?.
one thing i have observed is, if the same statement "pageContext.include("resource.jsp")" is written in doStartTag() or doEndTag() of the same custom tag the output of this resource.jsp will render properly with the tags output.