开发者

Access message source from EL

开发者 https://www.devze.com 2023-04-03 06:58 出处:网络
Suppose I have the following message source file: title=foo somefield=bar ... I always access it in the following way开发者_如何学JAVA:

Suppose I have the following message source file:

title=foo
somefield=bar
...

I always access it in the following way开发者_如何学JAVA:

<fmt:message key="title" />

but I'd prefer to use EL instead, something like:

${messages.title}

Is there a way to use expression language for accessing message source?

0

精彩评论

暂无评论...
验证码 换一张
取 消