Put this constant in the configuration file to enable static method access.
<constant name="struts.ognl.allowStaticMethodAccess" value="true" />
Use
<s:set name="resultStr" var="resultStr" value="@com.testapp.util.Utility@getResult()" />
and in the getResult() {
HttpServletRequest request = ServletActionContext.getRequest();