What to use for localization in JSP using Spring?

I have a Spring MVC webapp that used messages_xx.properties files. I am currently using

<fmt:message key="all.header.menu.items.start"/>

in my files. I just saw another tutorial recommending

<spring:message code="all.header.menu.items.start"/>

Can anyone tell the difference? What are PROs and CONs?

Thank!

+5
source share
1 answer

rom doc tag here

JSTL fmt: message-tag, , MessageSource Spring. , spring: message , Spring. HTML- , web.xml. JavaScript.

"" , "" . , HTML- .

- , jstl

- 1 spring: message

+5

All Articles