struts2的jsp页面的Unterminated [<s:iterator] tag错误

这个错误一般是因为在html的注释中写了struts2的标签:

<!-- 使用strust2标签 类似jstl的foreach标签
		<s:iterator>:遍历值栈中的list集合
	 -->

像这样写是会报错的,若想注释struts2标签可以用jsp的注释:

<%-- 使用strust2标签 类似jstl的foreach标签
		<s:iterator>:遍历值栈中的list集合 --%>

这样就不会报错啦!

猜你喜欢

转载自blog.csdn.net/qq_37581282/article/details/81181440