首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

DWR使用过程中的几个小问题

2012-10-26 
DWR使用过程中的几个问题1、dwr与spring的集成。 o:p?o:p?applicationContext.xmlo:p/o:p代码?2、dwr

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大哥多多指点!

热点排行