2011/6/20 k3v1n <[email protected]>:
> <s:if test="%{@org.mydomain.MyClass@myMethod(request) != null}">
> aaa
> <s:if />
Wrap call to myMethod inside your action that should implement
RequestAware interface [1], like below
public class MyAction implements RequestAware {
private Map<String, Object> request;
void setRequest(java.util.Map<java.lang.String,java.lang.Object> request) {
this.request = request;
}
public boolean isMyMthod() {
return org.mydomain.MyClass.myMethod(request) != null;
}
}
<s:if test="myMethod">
bbbb
</s:if>
[1]
http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/RequestAware.html
Regards
--
Ćukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]