在JSP网页中使用displaytag的例子有好多,可是如何在struts中使用displaytag呢?可不可以给你实例的方法。

解决方案 »

  1.   

    那么viewCsServicerecordForm要如何编写呢?
      

  2.   

    算了,告诉你吧……
    public class ViewCsServicerecordForm extends ActionForm { private static final long serialVersionUID = 1L; private List servicerecordList; public List getServicerecordList() {
    return servicerecordList;
    } public void setServicerecordList(List servicerecordList) {
    this.servicerecordList = servicerecordList;
    } public void reset(ActionMapping Mapping, HttpServletRequest Request) {

    servicerecordList=DBxxxIO.Query(null,null);----得到查询结果,return 类型为list.
    } public ViewCsServicerecordForm() {
    super();
    }}