如何在<form:input>的属性中使用<pring:message>?
2022-09-01 00:50:10
我有这样的JSP代码:
<div class="formRow">
<form:input id="email_email" name="email_email" title="XXXXX"/>" path="email" cssClass="input required email" />
<form:errors path="email" cssClass="error" />
</div>
我想用一些工具提示文本来设置属性,支持i18n。我该怎么做?title
我想做这样的事情:
<div class="formRow">
<form:input id="email_email" name="email_email" title="<spring:message code="tooltip.text" />"/>" path="email" cssClass="input required email" />
<form:errors path="email" cssClass="error" />
</div>