springmvc中s:property的等价物
我目前正在将一个Struts2项目转换为SpringMVC,我正在努力在Spring中找到与s:property标记等效的东西。 下面是一些我想要转换的示例:springmvc中s:property的等价物,spring,spring-mvc,jsp,struts2,Spring,Spring Mvc,Jsp,Struts2,我目前正在将一个Struts2项目转换为SpringMVC,我正在努力在Spring中找到与s:property标记等效的东西。 下面是一些我想要转换的示例: <s:property value="#contentha.idcontent"/> <s:property value="%{topRex.idcontent}"/> 谢谢你的帮助 你可以写 ${contentha.idcontent} ${topRew.idcontent} 如果要使用标记,可以编写:
<s:property value="#contentha.idcontent"/>
<s:property value="%{topRex.idcontent}"/>
谢谢你的帮助 你可以写
${contentha.idcontent}
${topRew.idcontent}
如果要使用标记,可以编写:
这将需要jstl
依赖项。例如,如果使用Maven:
jstl
jstl
1.2
您是否仍将使用jsp或模板引擎,如thymeleaf?