You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Dean A. Hoover" <dh...@rochester.rr.com> on 2004/08/18 10:07:07 UTC
logic:present jstl equivalent?
I am attempting to change my application to
use jstl wherever possible. Is there an equivalent
in jstl for the logic:present tag?
For example, I use:
<logic:present scope="session" name="user">
is there some way to do this in jstl?
Thanks.
Dean Hoover
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: logic:present jstl equivalent?
Posted by Deepak <de...@ltp.soft.net>.
Try
<c:if test="${user != null}">
--Do Something
</c:if>
--Deepak
----- Original Message -----
From: "Dean A. Hoover" <dh...@rochester.rr.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, August 18, 2004 1:37 PM
Subject: logic:present jstl equivalent?
> I am attempting to change my application to
> use jstl wherever possible. Is there an equivalent
> in jstl for the logic:present tag?
>
> For example, I use:
>
> <logic:present scope="session" name="user">
>
> is there some way to do this in jstl?
>
> Thanks.
> Dean Hoover
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: logic:present jstl equivalent?
Posted by Bill Siggelkow <bi...@bellsouth.net>.
<c:if test="${not empty sessionScope.user}">...
Dean A. Hoover wrote:
> I am attempting to change my application to
> use jstl wherever possible. Is there an equivalent
> in jstl for the logic:present tag?
>
> For example, I use:
>
> <logic:present scope="session" name="user">
>
> is there some way to do this in jstl?
>
> Thanks.
> Dean Hoover
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org