Use <s:include value="somePage.jsp">
instead of <jsp:include page="somePage.jsp"/>
.
If you instead want to stick with <jsp:include />
, you need to set
<constant name="struts.ognl.allowStaticMethodAccess" value="true"/>
in Struts.xml, and it will work like a charm.
Don't ask me why, this is not mentioned anywhere in the documentation, it was a lucky discovery I made some time ago.