Pratik wrote:

> Hi I am trying to make a taglibrary
> I just can't understand difference between EVAL_BODY_INCLUDE &
> EVAL_BODY_TAG can anyone tell me how to do that and when
> can somebody guide me?
> pratik
>

EVAL_BODY_INCLUDE is used when your tag implements the Tag interface (and not
BodyTag).  It means that you want the body of this tag, if any, to be compiled into
the output stream as usual.

EVAL_BODY_TAG is used when your tag implements the BodyTag interface, and you want
the body of this tag to be compiled into a new BodyContent object, instead of to
the output stream.  For example, a custom tag for SQL processing that let you place
the actual select statement in the body of the tag, like this:

    <sql:select>
        SELECT * FROM CUSTOMERS
    </sql:select>

would use EVAL_BODY_TAG, so that it could read and use the SQL statement text
(instead of having it output as JSP template text).

Craig McClanahan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to