日期:2014-05-20 浏览次数:20660 次
public String goWorkBarExcel()throws Exception{ NetworkBar workBar; List<NetworkBar> list=this.networkBarImp.findWorkBarByBarAddress(this.getParam()); myList=new ArrayList<NetworkBar>(); for(Iterator<NetworkBar> it=list.iterator();it.hasNext();){ workBar=it.next(); myList.add(workBar); }
<action name="report_*" class="org.boss.action.NetworkBarAction" method="{1}"> <result name="excelreport" type="jasper"> <param name="location">/jasper/report1.jasper</param> <param name="dataSource">myList</param> <param name="format">HTML</param> </result> <result name="report">../deal/barreport.jsp</result> </action>