• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

logic tag inside nested:iteration tag

 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a question about struts tag lib
I have written a code which perform conditional statement based on other Bean inside a nested loop. The result it's only executed the first condition.
Is it ok to put logic:equal inside nested:iteration tag?

 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As long as a <logic:equal> tag does not reference a bean exposed by the <nested:iterate> tag, it's ok to use it inside a <nested:iterate> tag. If it does reference a bean exposed by the <nested:iterate> tag, you need to use the <nested:equal> tag.
reply
    Bookmark Topic Watch Topic
  • New Topic