facebook

Struts Logic Tag

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #228697 Reply

    Hi folks,

    I’m stumped trying to figure out how to compare a value to a bean.

    <logic:notEqual name=”element” property=”lvl” value=”<bean:write
    name=’currentLevel’/>”>

    I’m in a logic:iteration loop. Element is the bean that holds
    property “lvl” which I want to compare to the bean “currentLevel”.

    It’s a tree, and I need to know when the tree branches.

    TIA,

    Lee

    #228715 Reply

    Riyad Kalla
    Member

    What is happening now? What is the result of the following 2 lines if added directly above this line:
    <bean:write name=”element” property=”lvl” />
    <bean:write name=”currentLevel” />

    What is the type of the lvl property? What is the type of “currentLevel”? I wonder if they are getting converted to Strings and being compared…

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Struts Logic Tag

You must be logged in to post in the forum log in