之前在jsp中用jstl写了遍历一个列表的方法,这次主要是讲一下struts自带标签的遍历方法。
struts的遍历是iterator
首先 我们要在action中的方法创建一个list 然后赋值并提供他的get方法,这样struts自动将他的值传入到valueStack中,
遍历方法
status的应用
之前在jsp中用jstl写了遍历一个列表的方法,这次主要是讲一下struts自带标签的遍历方法。
struts的遍历是iterator
首先 我们要在action中的方法创建一个list 然后赋值并提供他的get方法,这样struts自动将他的值传入到valueStack中,
status的应用