I18N字符集编码Spring-JSP [英] I18N charset Encoding Spring-JSP

查看:281
本文介绍了I18N字符集编码Spring-JSP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图显示é作为我的表单:input 字段的标题,

I'm trying to show é as a title of my form:input field, and I can't get it working.

<form:input type="text" path="something" title="é"/>



输出:



Output :

<input type="text" title="<spring:message code="mySpecialChar" />"/>



输出:



Output :

<form:input type="text" path="something" title="<spring:message code="mySpecialChar" />"/>



输出:



错误

Output :

Error, I'm not allowed to do that, to solve this, I've tried Example 4.

<spring:message code=mySpecialChar" var="mySpecialChar"/>
<form:input type="text" path="something" title="${mySpecialChar}"/>



输出:



Output :

如何使我的示例4正常工作?

How can I get my Example 4 working properly ?

推荐答案

htmlEscape =false添加到我的< spring:message> 标记。

春天:消息文档

这篇关于I18N字符集编码Spring-JSP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆