您现在的位置是:首页 > 电脑技术查询 > web开发

jsp 遍历list,该如何解决

编辑:chaxungu时间:2022-10-02 23:16:44分类:web开发

jsp 遍历list
Java codeAction.java 中有这样的方法。public String print()throws Exception { List<AdAccountBook> list=(List<AdAccountBook>) adAccountBookManager.getList(searchKey, approveStatus);// System.out.println(list.get(0)); success=true; return SUCCESS; }
怎样在jsp 页面遍历list的内容 如 id,content ,显示在table 中

------解决方案--------------------
探讨
CSS code

private List<AdAccountBook> list;
list的setter/getter方法,要添加

public String print()throws Exception
{

list=(List<AdAccountBook>) adAccountBookManager.getList(searchK……