struts的iterator的遍历

之前在jsp中用jstl写了遍历一个列表的方法,这次主要是讲一下struts自带标签的遍历方法。

struts的遍历是iterator

首先 我们要在action中的方法创建一个list 然后赋值并提供他的get方法,这样struts自动将他的值传入到valueStack中,

遍历方法 

status的应用 

效果展示

猜你喜欢

转载自blog.csdn.net/weixin_41298572/article/details/88068500