FAQ
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>


****

Search Discussions

  • Kawczynski, David at Nov 5, 2008 at 4:59 pm
    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
    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
  • Dave Newton at Nov 5, 2008 at 5:03 pm
    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 wrote:
    From: Russo, Joe <RussoJ@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
  • Russo, Joe at Nov 5, 2008 at 10:34 pm
    Thanks for your reply.





    -----Original Message-----
    From: Kawczynski, David
    Sent: Wednesday, November 05, 2008 11:59 AM
    To: Struts Users Mailing List
    Subject: RE: logic tag question



    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
    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


    ****


    ****
  • Russo, Joe at Nov 5, 2008 at 10:36 pm
    Thanks for your reply.



    -----Original Message-----
    From: Dave Newton
    Sent: Wednesday, November 05, 2008 12:03 PM
    To: Struts Users Mailing List
    Subject: Re: logic tag question



    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 wrote:
    From: Russo, Joe <RussoJ@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


    ****


    ****

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriesstruts
postedNov 5, '08 at 4:52p
activeNov 5, '08 at 10:36p
posts5
users3
websitestruts.apache.org
irc#struts

People

Translate

site design / logo © 2022 Grokbase