I would try returning EVAL_BODY_INCLUDE from "doStartTag()". > -----Original Message----- > From: Peter Dolukhanov [mailto:[EMAIL PROTECTED] > > I am having a very bizarre problem to do with Tag Libraries. I am > currently designing a set of libraries to perform > Simple database connections and operations. As a result, I need a > "ifNotNull" tag, which takes a column attribute and only allows the > nested contents to be parsed if the current row is not null. > > However, the tag I built for this does not work properly, so I reduced > the functionality to a basic tag, and it still does not work. The code > is as follows: > > public class RandomTag extends BodyTagSupport > { > > public int doStartTag() throws JspTagException > { > return EVAL_BODY_TAG; > } > > public int doAfterBody() > { > return (SKIP_BODY); > } > } > > This should simply allow any contents within the body to be parsed. > > The TLD for this particular tag is: > > <tag> > <name>ifNotNull</name> > <tagclass>dbTagLib.RandomTag</tagclass> > </tag> > > The usage within the JSP is: > > <dbConn:ifNotNull> > <dbConn:header fieldIndex="3"/> = <dbConn:field fieldIndex="title"/><br> > </dbConn:ifNotNull> > > However, this header and field elements will not output, they work > normally, but not when nested within this ifNotNull element. > > Can anyone shed any light on why this may not be working?
==========================================================================To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com