Tapestry 3: cannot get messages from properties fi

2019-08-20 02:39发布

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条回答
Explosion°爆炸
2楼-- · 2019-08-20 03:10

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).

查看更多
登录 后发表回答