I read the document. It says logic:equal ,lessThan, greaterThan ... tags can compare a bean's property to a constant. Eg. <logic:notEqual name="bean1" property="prop1" value="0"> xxxxxxx </logic:notEqual> But how can I compare properties in beans with these tags? For example, I have 2 bean instances in JSP: bean1 and bean2. They both have an field pageNo. How can I use logic:equal tag to compare bean1.pageNo to bean2.pageNo? Regards, Vincent