You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Vernon <ve...@gatewaytech.com> on 2003/03/29 06:07:41 UTC

Any logic:notPresent equivalent tag(s) in JSTL

I am forced to use the Struts Tiles without Struts due to a tag pooling problem of template tag set ( from a JSP book). To   
avoid the definition objects are recreated each time the definition file is included, and drain performance. It is better to 
have something like the Struts logic:notPresent tag. Is something equivalent in JSTL?

Thanks for your input.

Vernon



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


Re: Any logic:notPresent equivalent tag(s) in JSTL

Posted by Vernon <ve...@gatewaytech.com>.
Thanks David for your input.

That is to say that

<c:if test="${empty applicationScope.definitionName" >
<tiles:definition id="definitionName" page="/layouts/myLayout.jsp">
    <!-- ... -->
</tiles:definition>
</c:if>

is qurivalent to 

<logic:notPresent name="definitionName" scope="application">
<tiles:definition id="definitionName" page="/layouts/myLayout.jsp">
    <!-- ... -->
</tiles:definition>
</logic:notPresent>
 
Is that right?



28/03/2003 10:40:18 PM, dmkarr@earthlink.net (David M. Karr) wrote:

>>>>>> "Vernon" == Vernon  <ve...@gatewaytech.com> writes:
>
>    Vernon> I am forced to use the Struts Tiles without Struts due to a tag pooling problem of template tag set ( from a 
JSP book). To   
>    Vernon> avoid the definition objects are recreated each time the definition file is included, and drain performance. It 
is better to 
>    Vernon> have something like the Struts logic:notPresent tag. Is something equivalent in JSTL?
>
>The following has close to the same semantics:
>
>  <c:if test="${empty expr}">
>
>-- 
>===================================================================
>David M. Karr          ; Java/J2EE/XML/Unix/C++
>dmkarr@earthlink.net   ; SCJP; SCWCD
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>




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


Re: Any logic:notPresent equivalent tag(s) in JSTL

Posted by "David M. Karr" <dm...@earthlink.net>.
>>>>> "Vernon" == Vernon  <ve...@gatewaytech.com> writes:

    Vernon> I am forced to use the Struts Tiles without Struts due to a tag pooling problem of template tag set ( from a JSP book). To   
    Vernon> avoid the definition objects are recreated each time the definition file is included, and drain performance. It is better to 
    Vernon> have something like the Struts logic:notPresent tag. Is something equivalent in JSTL?

The following has close to the same semantics:

  <c:if test="${empty expr}">

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net   ; SCJP; SCWCD




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