How do I compare two variables using the Logic tags?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Bob_Bobson
Posted On:   Tuesday, January 28, 2003 09:20 AM

I am iterating over a list of user objects. If I come across the user that is logged in, I want to display him differently. It looks like the Struts logic comparison tags (equal, match) can only work with one variable and one constant. I have 2 variables (the current member id, and the list of members). How can I make this comparison in Struts?

Re: How do I compare two variables using the Logic tags?

Posted By:   Jerome_Iffrig  
Posted On:   Wednesday, January 29, 2003 01:26 AM

No, it does not work on "constants" - all the attributes are "RT EXPR" (e.g. run-time expression), so you don't necessary have to "hard-code" anything.
About | Sitemap | Contact