I have a JSP-Tagfile that displays an html header and defines my Javascript / Stylesheet resources.
<%@ tag language="java" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="<spring:theme code="main.css"/>"/>
<script type="text/javascript" src="<spring:theme code="default.js"/>"></script>
...
</html>
Now I will not download i18n messages for javascript.
var button_ok='<spring:message code="js.button.ok" javaScriptEscape="true"/>';
When I use this inside a file tag, it works as intended and resolves messages, even if there is only default messages.properties(backup).
But if I upload messages using an external javascript file lang.js.jsp, it only tries to resolve the message code for the properties for the current language, and the default backup does not work.
source
share