【发布时间】:2011-03-15 14:13:39
【问题描述】:
我正在将一个旧的 Struts 1.x 应用程序转换为 Spring MVC,在一些 JSP 页面中,bean:define 标记用于从资源包中获取字符串,然后在稍后使用页面:
<bean:define id="example_title"><fmt:message bundle="${example_Labels}" key="example_field"/></bean:define>
然后:
title="<%=example_title%>"
我不确定等效的 JSTL(或者甚至应该是 JSTL)标签应该是什么才能取消 Struts 标签,有人可以提供建议吗?我尝试过使用 JSTL set 和 jsp:useBean,但要么它们是错误的方式,要么我没有正确实施它们。
感谢您的任何建议!
【问题讨论】:
标签: jsp spring-mvc struts jstl javabeans