Im using Struts 2.2.3 with tiles 2.1.4. It works absolutely fine, but now I'm trying to use EL expressions, and I can't get it to work. In Struts2, I can use <s:property value="${getText('Dashboard.label')}"/> , and it extracts the message from the package. I'd like to use the same in defining Tiles. So far Ive added param context to web.xml
<context-param> <param-name>org.apache.tiles.evaluator.AttributeEvaluator</param-name> <param-value>org.apache.tiles.evaluator.el.ELAttributeEvaluator</param-value> </context-param>
Now I want to use the following expression to define:
<put-attribute name="pane-title" expression="${getText('Dashboard.label')}" cascade="true"/>
The problem is that when I do this, the screen is not created saying:
Function ': getText' not found
So, I guess I missed something, but I donβt know why. Any ideas?
struts2 tiles
Jose L Martinez-Avial
source share