如何访问tapestry 5 tml文件中的app.properties

时间:2016-09-23 23:02:01

标签: tapestry

在tml中访问index.properties name-value很简单,只需在index.tml中使用$ {message.greeting}

<h1>${message:greeting}</h1>   

如何从index.tml中应用程序的一般app.properties文件中访问名为welcome的名称值?

1 个答案:

答案 0 :(得分:1)

它以完全相同的方式完成。 Tapestry首先查看页面的属性文件(如果有),然后查看app.properties。

&LT; H1&GT; $ {消息:欢迎}&LT; / H1&GT;

请参阅https://tapestry.apache.org/localization.html

相关问题