This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Logic:iterate + OR condition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Logic:iterate + OR condition" Watch "Logic:iterate + OR condition" New topic
Author

Logic:iterate + OR condition

Maeve Shey
Greenhorn

Joined: Oct 13, 2004
Posts: 7
Hi,

I need to place an if(x or b) condition in my JSP. Ive tried the following but it will not work

<logic:iterate id="OLTX_list" name="modeloutputkey" property="oltxAccountTypes" indexId="OLTXidx">
<logic:equal name="OLTXidx" value="2"><%or%><logic:equal name="OLTXidx" value="3">
//Something to do
</logic:equal>
</logic:equal>
</logic:iterate>

Any ideas on how I can get this going?

Thanks
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4446
    
    5

Why not use JSTL?



Junilu - [How to Ask Questions] [How to Answer Questions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Logic:iterate + OR condition
 
Similar Threads
Iterate Hashmap through struts
logic:equal
Struts 1.1: Need help with logic:iterate and logic:equals tag
Nested:iterate
logic:iterate problem