You might be interested in looking at the current
early access release of the JSP Standard Tag Library at:

  http://jakarta.apache.org/taglibs/doc/jsptl-doc/jsptl-ea1/index.html

The expert group currently privileges the
<choose> <when> <otherwise> approach to handle
mutually exclusive conditionals.

For example, for an if/else, one would use the following:

  <choose>
    <when test="...">
      ...
    </when>
    <otherwise>
      ...
    </otherwise>
  </choose>

Granted that this is more verbose, but it provides a single,
clean model to handle mutually exclusive conditionals.

    -- Pierre


Winnie Tung wrote:
>
> Has anyone tried to do a 2 body part custom tags?
>
> I try to avoid the
> <if conditionA>
>    ...
> </if>
> <if !conditionA>
>    ...
> </if>
>
> which makes 2 tag calls.
>
> Thanks.
>
> Winnie
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.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://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

===========================================================================
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://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