在点击 execute 按钮后,弹出个 error 的信息框,但是控制台没异常信息输出。
dwr.xml:<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 3.0//EN" "http://www.getahead.ltd.uk/dwr/dwr30.dtd">
<dwr>
  <allow>
    <create creator="new" javascript="getcity">
      <param name="class" value="com.biz.impl.ProvinceBizImpl"/>
    </create>
  </allow>
</dwr>

解决方案 »

  1.   

    <create javascript="ProvinceBizImpl" creator="spring">
    <param name="beanName" value="接口" />
    <include method="方法名" />
    </create>
      

  2.   

    后台没报错有可能是后台的异常没有处理,如果后台处理了,出了异常,那就是dwr的配置问题!!
      

  3.   

    应该是后台的JAVA代码出异常了吧,用DWR后台代码出异常,在页面中是不显示的,貌似JVM补不到?
    你可以把有可能出异常的地方try-catch一下,这样后台就能看见异常了。
      

  4.   

    DWR页面内容:Methods For: getcity (com.biz.impl.ProvinceBizImpl)
    To use this class in your javascript you will need the following script includes:  <script type='text/javascript' src='/ssh/dwr/interface/getcity.js'></script>
      <script type='text/javascript' src='/ssh/dwr/engine.js'></script>In addition there is an optional utility script:  <script type='text/javascript' src='/ssh/dwr/util.js'></script>Replies from DWR are shown with a yellow background if they are simple or in an alert box otherwise.
    The inputs are evaluated as Javascript so strings must be quoted before execution.getDao( );  
    (Warning: No Converter for com.dao.ProvinceDao. See below) 
    setDao(  );  
    (Warning: No Converter for com.dao.ProvinceDao. See below) 
    getAllProvince( );   
    getCityByPid(  );  【execute按钮】  --点击按钮弹出 error 对话框!!!
      

  5.   

     No Converter for com.dao.ProvinceDao 管它什么事啊?
      

  6.   

    你这个 应该是暴漏的方法有问题,我以前遇见过。结果是Hibernate的映射文件没有加载进去
      

  7.   

    好像是你没有调用dwr类的方法