You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by 林志鵬 Vincent Lin <vi...@truetel.com.tw> on 2001/06/18 09:42:42 UTC

How to compare properties in to beans in logic:equal tag?

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