Hey Eddie,

Is this stuff from the JSTL or Jakarta's implementation of the JSTL?  It
looks cool, but  little too much like scriptlets - too much programming
logic - in the page.

Mark

-----Original Message-----
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 12:30 AM

Is "org.apache.struts.MyCustomBean" the name you put it into the session 
with?  You'll use the same attribute name to get it back out as you did 
to put it there.

<locic:present name="beanName">
    ...
</logic:present>

<locic:notPresent name="beanName">
    ...
</logic:notPresent>

- or the way I like to do it -

<c:choose>
    <c:when test="${empty beanName}">
        ...
    </c:when>
    <c:otherwise>
        ...
    </c:otherwise>
</c:choose>

Ok, in this case it's actually more lines of code - but the JSTL has the 
ability to be recognized and optimized by the container - can't say that 
for the logic tags!

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to