Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comparing two bean properties

Status
Not open for further replies.

ets04uga

Programmer
May 14, 2005
1
US
Hello-

I am unsure how to compare two bean properties. I want to compare if an iterated value is the same as another bean property value

As an example, I have the code:

<logic:iterate id="mgb" name="gallery" property="pages">

//inside here I want to compare the pages iterated value to
//current page
<bean:define id="param3" name="gallery" property="currentPage" />

</logic:iterate>

Can someone explain how to do this?


Thank you,
E
 
Hi,

You can use <logic:equal value=""/> inside a logic:iterator

Cheers
Venu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top