2017-01-19 1 views
1

저는 Spring Web MVC (Model-View-Controller) 프레임 워크를 기반으로하는 프로젝트를 가지고 있습니다. 스프링 웹 모델 - 뷰 - 컨트롤러 (MVC) 프레임 워크의 버전은 3.2.8이다.fn 함수가있는 JSTL

내 JSP

${fn:toUpperCase(<fmt:message key="${description.language.label}" />)} 

에서

하지만 난 ${ } 표현 내부의 <fmt:message> 태그가 작동하지 않습니다이 오류

weblogic.servlet.jsp.CompilationException: deviceInfo.jsp:118:61: Syntax error in expression. Encountered "<". Expected one of : <INTEGER_LITERAL>, <FLOATING_POINT_LITERAL>, <STRING_LITERAL>, "true", "false", "null", "(", ")", "!", "not", "empty", "-", <IDENTIFIER>, 
${fn:toUpperCase(<fmt:message key="${description.language.label}" />)} 
^ 

답변

1

을 얻었다. 메시지 출력을 포함하도록 임시 변수를 설정하고 식 내부에 사용하십시오.

<c:set var="msg"> 
    <fmt:message key="${description.language.label}" /> 
</c:set> 

... 

${fn:toUpperCase(msg)}