It's difficult to pinpoint the problem exactly. One possibility though, is that you return the constant EVAL_PAGE from the BodyTagSupport.doEndTag() method (which is the default return value), rather than EVAL_BODY_AGAIN.
Returning EVAL_PAGE means that the body iteration should end and the rest of the page processed, while returning EVAL_BODY_AGAIN causes the servlet container to reevaluate the body of the tag. ----- Original Message ----- From: "cbarnes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 23, 2002 3:26 PM Subject: Using the BodyTagSupport class for custom tags > I have written a custom tag that extends the BodyTagSupport class. The > reason I have extended this class is because I want the body of the tag to > be evaluated a number of times, and this can only be done by using the > doAfterBody method in BodyTagSupport. > > I don't want the custom tag to change the body content in anyway, I just > want it to be evaluated as normal JSP code, therefore in the tld file for > the custom tag I have specified the body content as JSP. > > However, although the Java code in the body of the tag is evaluated, the > HTML content is not written out. > > Can anyone tell me what I am doing wrong? > > Thanks, > Catharine > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
