Tapestry 3: cannot get messages from properties file

自作多情 提交于 2019-12-12 06:27:28

问题


I have tapestry 3 template in HelloWorld.html and HelloWorld.properties file with strings in the same folder, but cannot get them.

I've tried :

The only output that i have is [PAGETITLE].

Here is the content of properties file:

pageTitle=Hello world


回答1:


The .properties file needs to go in the same folder as the corresponding class: probably under src/main/resources (it of course varies with the layout of your project).



来源:https://stackoverflow.com/questions/5745368/tapestry-3-cannot-get-messages-from-properties-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!