dao中有如下的方法:
public List<Customer> findByState(int state) {
return this.getHibernateTemplate().find("from Customer c where c.state="+state);
}
biz中对应的方法: public List<Customer> getFindByState(int state) {
return customerDao.findByState(state);
}dwr.xml如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC
    "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN"
    "http://getahead.org/dwr/dwr20.dtd">
    
<dwr>
<allow>
<create javascript="JCustomer" creator="spring">
<param name="beanName" value="CustomerBiz"></param>
<include method="getFindByState"/>
         </create>
<convert match="com.xxx.survey.entity.Customer"converter="bean"></convert>
</allow>
</dwr>这个方法就是通过state查询所有符合条件的customer,state有三种状态,0,1,2;问题来了,在dwr的debug页面,输入0没问题,其他两种没反应,也没报error。打调试信息,数据已经查出来,这应该就不是方法的问题吧,但dwr就是抓不到值,只有0的时候ok,这是什么情况,求解答??