I've been working with Struts for a long time, and I've never heard of the xx:if, or xx:condition tags. They must be in some other custom tag library you're using. For Struts, you'll want to use the <logic:equal> tag.
Thanks for you response Merril, I am new to struts.
Well, when I say <XX:if > its a custom tag and XX stands for company name. I didnot want to mention that. But How could I use that conditin tag? I checked the tld file theres nothing there except for definition. No attribues or anything.
How could I use <logical: greaterThan> tag to compare a string value ( eg. "2.0" )to a double value 0.1? The balance type in my bean account is string.
The actual logic of a custom tag is in java classes that the .tld file points to. In your TLD, you will find <tagclass) and <teiclass> entries. Look in these classes for the actual logic of the tags.
Regarding the <logic:greaterThan> tag, the answer to your question is in the link that I gave you:
Each of the value comparison tags takes a value and compares it to the value of a comparison attribute. If the value given can be successfully converted to a float or double, then a number comparison is performed on the value given and the value of the comparison attribute. Otherwise a String comparison is performed.
Even if the property is a string, the tag does a number comparison if it can.