If you meant length, you can use the built-in length , for example:
<#if string?length gt 0>
If you want to use arbitrary comparison, and you use Struts2, you can just call the action method for it, suppose you have a comparison method:
public boolean compare(String str1, String str2) { ... }
You can do it:
<#if action.compare(str1, str2) gt 0>
source share