随笔-124  评论-49  文章-56  trackbacks-0
1 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>
    
<convert converter="bean" match="org.dwr.entity.MyKey">
        
<param name="include" value="kid,keyString"/>
    
</convert>
    
<create creator="spring" javascript="getlist">
        
<param name="beanName" value="keyBiz"/>
    
</create>
  
</allow>
</dwr>

2 web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  
<welcome-file-list>
    
<welcome-file>index.jsp</welcome-file>
  
</welcome-file-list>

  
<servlet>
      
<servlet-name>dwr</servlet-name>
      
<servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
      
<init-param>
          
<param-name>debug</param-name>
          
<param-value>true</param-value>
      
</init-param>
    
<load-on-startup>0</load-on-startup>
  
</servlet>
  
<servlet-mapping>
      
<servlet-name>dwr</servlet-name>
      
<url-pattern>/dwr/*</url-pattern>
  
</servlet-mapping>

</web-app>
posted on 2009-11-03 10:33 junly 阅读(186) 评论(0)  编辑  收藏 所属分类: ajax/jquery/js

只有注册用户登录后才能发表评论。


网站导航: