AWTaglib是一个Jsp标签可用于创建网格(grid)控件.它还提供一些额外的功能可以把网格中的数据导出为XLS,PDF和CSV(利用JasperReports来实现)并能与Struts框架相结合.
使用代码行如:
< awtaglib:gridIterator id= “index” name= “gridCollection” report= “true” dynamic= “true” styleClass= “grid” action= “/report” > < awtaglib:gridElement name= “index” property= “name” title= “title.name” type= “editable” / > < awtaglib:comboGridElement name= “index” property= “age” title= “title.age” options= “comboCollection” labelProperty= “name” labelValue= “value” / > < awtaglib:listGridElement name= “index” property= “address” title= “title.address” collection= “listCollection” valuecolumn= “1” / > < awtaglib:gridElement name= “index” property= “birthDate” title= “title.birthdate” type= “date” / > < awtaglib:CheckBoxGridElement name= “index” property= “single” title= “title.single” trueValue= “single” falseValue= “married” / > < / awtaglib:gridIterator >