<servlet> <servlet-name>dwr-invoker</servlet-name> <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>true</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>dwr-invoker</servlet-name> <url-pattern>/dwr/*</url-pattern> </servlet-mapping>
<dwr> <allow> <create creator="new" javascript="test"> <param name="class" value="com.lxit.BackControl" /> </create> <convert converter="bean" match="com.lxit.Student"> </convert> </allow> <signatures> <![CDATA[ import java.util.List; import com.lxit.BackControl; import com.lxit.Student; ]]> </signatures> </dwr>
<script type='text/javascript' src='dwr/interface/test.js'></script> <script type='text/javascript' src='dwr/engine.js'></script> <script type='text/javascript' src='dwr/util.js'></script>
原文地址:http://blog.csdn.net/howareyoutodayyhz/article/details/39547407