DWR使用过程中的几个问题
1、dwr与spring的集成。
<o:p>?<o:p>?applicationContext.xml<o:p></o:p>代码
?2、dwr与struts的集成问题。<o:p></o:p>
???Dwr.xml代码
<o:p>????? 这里建议直接使用DAO的方法,直接在View层中调用DAO,破坏了程序的层次;利用action进行统一的处理,会不会有生产js的效率问题,是否可以新建一个dwr的 包让View直接与其通信?@RemoteProxy(creator = SpringCreator.class, name = "Service", creatorParams = @Param(name = "beanName", value = "AjaxService"))public class AjaxDWRService extends AjaxService {public AjaxDWRService() {}@RemoteMethodpublic List getRoles(String depname) {}@RemoteMethodpublic List getModNmames() {}@RemoteMethodpublic List getModule(int moduleId) {}} 2 楼 bingxue2332 2007-01-06 小弟对DWR也是刚刚接触,还请boin大哥多多指点!