Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
springmvc中s:property的等价物_Spring_Spring Mvc_Jsp_Struts2 - Fatal编程技术网

springmvc中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} 如果要使用标记,可以编写:

我目前正在将一个Struts2项目转换为SpringMVC,我正在努力在Spring中找到与s:property标记等效的东西。 下面是一些我想要转换的示例:

<s:property value="#contentha.idcontent"/>
<s:property value="%{topRex.idcontent}"/>

谢谢你的帮助

你可以写

${contentha.idcontent}
${topRew.idcontent}
如果要使用标记,可以编写:


这将需要
jstl
依赖项。例如,如果使用Maven:


jstl
jstl
1.2

您是否仍将使用jsp或模板引擎,如thymeleaf?