struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Allen <...@mojavelinux.com>
Subject Re: Why have <logic-el:present>?
Date Wed, 26 Mar 2003 19:09:15 GMT
> The README.txt file in the contrib/struts-el folder explains what JSTL tags to use in
place of the "missing" Struts tags.
> 
> But I'm not sure why <logic-el:present> and <logic-el:notPresent> were implemented
in Struts-EL.
> 
> What can you do with those tags that you cannot do with JSTL?
> 
> How does using logic-el:present/notPresent differ from:
> <c:choose>
>   <c:when test="${empty myObject.property}">
>     display something
>   </c:when>
>   <c:otherwise>
>     display something else  
>   </c:otherwise>
> </c:choose>
> 
> Just want to make sure I know what I'm missing by preferring the JSTL tags to something
in Struts-EL.

For one it has the role attribute which is nice for filtering roles.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <dan@mojavelinux.com>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
There is no such thing as a casual knowledge of xslt, either 
you know everything about it or you are sitting in the creek.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message