dwr学习笔记3

时间:2022-10-15 08:12:58

1  dwr中多配置文件的设置

    如果需要使用多个dwr.xml,可以这样做
     <init-param>

      <param-name>config*****</param-name>
     <param-value>WEB-INF/dwr.xml</param-value>
    </init-param>
  配置时,要这样config-xxxxx,

<servlet>
    <servlet-name>dwr-user-invoker</servlet-name>
    <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
   <init-param>

     <param-name>config-user</param-name>
     <param-value>WEB-INF/dwr-user.xml</param-value>

</init-param>
     </servlet>

<servlet-mapping>
  <servlet-name>dwr-user-invoker</servlet-name>
    <url-pattern>/dwruser/*</url-pattern>
 </servlet-mapping>