这是反编译出来的内容。其中有几个变量是没有定义的,actionform、s、 list1、父类也找不到,这几个变量那里来的?
最好它还super()了一下,HibernateDaoSupport中根本就没有list这个方法。有哪位能帮我解释一下吗???
跪谢~~~~public class CoreDaoImpl extends HibernateDaoSupport implements ICoreDao {
public CoreDaoImpl() { /*  21*/log = Logger.getLogger(getClass());
} public List list(final ActionForm form, final String hql,
final List dateList) {/*  24*/
log.debug("\u51C6\u5907\u751F\u6210list");
/*  25*/return getHibernateTemplate().executeFind(
new HibernateCallback() {
public Object doInHibernate(Session se)
throws HibernateException, SQLException {/*  28*/
log
.debug("\u8FDB\u5165\u56DE\u8C03\u51FD\u6570\uFF0C\u51C6\u5907\u6839\u636E\u9875\u9762\u8BBE\u7F6Esession");
/*  29*/return ListTool.list(form, se, hql, dateList);
} final CoreDaoImpl this$0;
private final ActionForm val$form;
private final String val$hql;
private final List val$dateList; {
/* <-MISALIGNED-> *//*   1*/this$0 = CoreDaoImpl.this;
/* <-MISALIGNED-> *//*   1*/form = actionform;
/* <-MISALIGNED-> *//*   1*/hql = s;
/* <-MISALIGNED-> *//*   1*/dateList = list1;
/* <-MISALIGNED-> *//*  25*/super();
}
});
}

解决方案 »

  1.   

    你在反编译其他人的struts程序吧,actionform、s、 list1,这些是定义的变量,list方法也是CoreDaoImpl自定义的,如果你要学习的话,还是慢慢来,不要指望一次性使用对方代码!
      

  2.   

    list应该是ICoreDao 里面的,dao主要就是用来操作数据库的
      

  3.   

    list是ICoreDao 里面的 ,不讨论ICoreDao 的问题。这个谁都知道。现在说的是actionform、s、 list1,
      

  4.   

    super();是那里来的?这里根本就不能super();
    Constructor call must be the first statement in a constructor
      

  5.   

    jad啊。用得比较多的一种啊,谁能帮我反一下啊 我给他class