请教大家一个struts2,tiles的问题
请教大家一个struts2的问题:我在tiles.xml定义了title
<definition name="default-layout" path="/pages/default-layout.jsp">
<put name="title" value="The title of the window here"/>
...
</definition>
在其他jsp页面可得到title的值. <tiles:getAsString name="title" />
但我必须支持多种语言,所以在MessageResources.properties里新加了一行
main.window.title=The title of the window here
...
在tiles.xml里引用了main.window.title:
<definition name="default-layout" path="/pages/default-layout.jsp">
<put name="title" value="main.window.title"/>
...
</definition>
用同样的<tiles:getAsString name="title" />却得不到title的值.
有人知道怎样解决吗? 多谢多谢!
页:
[1]