On Wed, Mar 5, 2008 at 10:20 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Chris Pratt <[EMAIL PROTECTED]> wrote: > > Notice that the last statement (using the OGNL == operator) doesn't > > return anything at all, which makes it useless in a <s:if> test. > > OGNL actually checks for isAssignableFrom; if either class isAssignableFrom > the other it checks for Comparable and calls compareTo, which is most likely > what's happening in your case. Only if neither class isAssignableFrom will it > call the instance's equals method. >
Since they're both the same Class (though not the same instance) they definitely should be assignable, but Name implements Cloneable and Serializable, not Comparable so it shouldn't be calling compareTo. (*Chris*) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]