Struts 2, 2.3.20 mentioned that
Support for accessing static methods from expression will be disabled soon, please consider re-factoring your application to avoid further problems!
We have used OGNL static calls in validators:
@ExpressionValidator(
expression = "@foo.bar@isValidAmount(amount)",
key = "validate.amount.is.not.valid"),
Also we used it in tags
<s:set var="test"
value="@foo.bar@sampleMethod(#attr.sampleObject.property1)" />
Well, what is the best way to refactor above two usages ?!