You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Russo, Joe" <Ru...@cadmus.com> on 2008/11/05 17:51:34 UTC

logic tag question

Hi,

I am trying to use a nested logic tag and I get an error:  equal symbol
expected

Any help would be appreciated.

Thanks,

Joe

 

Here is the code:

<logic:greaterThan name="article" property="parentArticleId" value="0">

<logic:notEqual name="article" property="parentArticleId"
value="<bean:write name="article" property="articleMetaId"/>">

                        <img src="../images/icon_merged.png" width="13"
height="13" align="absmiddle">

            </logic:notEqual>

</logic:greaterThan>


****

RE: logic tag question

Posted by "Kawczynski, David" <da...@merck.com>.
You can't nest taglibs.
Try using the el tags and using an expression in place of the 
Nested bean:write taglib call. 

-----Original Message-----
From: Russo, Joe [mailto:RussoJ@cadmus.com] 
Sent: Wednesday, November 05, 2008 11:52 AM
To: user@struts.apache.org
Subject: logic tag question

Hi,

I am trying to use a nested logic tag and I get an error:  equal symbol
expected

Any help would be appreciated.

Thanks,

Joe

 

Here is the code:

<logic:greaterThan name="article" property="parentArticleId" value="0">

<logic:notEqual name="article" property="parentArticleId"
value="<bean:write name="article" property="articleMetaId"/>">

                        <img src="../images/icon_merged.png" width="13"
height="13" align="absmiddle">

            </logic:notEqual>

</logic:greaterThan>


****
Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


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


Re: logic tag question

Posted by Dave Newton <ne...@yahoo.com>.
The issue is the bean tag inside the logic tag; that isn't valid JSP. You'll need to use EL there via the EL tags or JSP 2.0 support, depending on your container.

Dave


--- On Wed, 11/5/08, Russo, Joe <Ru...@cadmus.com> wrote:

> From: Russo, Joe <Ru...@cadmus.com>
> Subject: logic tag question
> To: user@struts.apache.org
> Date: Wednesday, November 5, 2008, 11:51 AM
> Hi,
> 
> I am trying to use a nested logic tag and I get an error: 
> equal symbol
> expected
> 
> Any help would be appreciated.
> 
> Thanks,
> 
> Joe
> 
>  
> 
> Here is the code:
> 
> <logic:greaterThan name="article"
> property="parentArticleId" value="0">
> 
> <logic:notEqual name="article"
> property="parentArticleId"
> value="<bean:write name="article"
> property="articleMetaId"/>">
> 
>                         <img
> src="../images/icon_merged.png"
> width="13"
> height="13" align="absmiddle">
> 
>             </logic:notEqual>
> 
> </logic:greaterThan>
> 
> 
> ****y

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