Here is an example of how DWR is configured in spring by passing an object.
JSP page: <script src= ' dwr/interface/instructionouterservice.js ' ></script><script src= ' dwr/engine.js ' ></script><script src= ' dwr/util.js ' ></script> var instructionouter = { id:1, name: ' MyName ' };//set sync Dwrengine.setasync (false); Instructionouterservice.checksameins (Instructionouter,function ( Date) {return;});D Wr.xml file: <create creator= "Spring" javascript= "Instructionouterservice" ><param name= "BeanName" value= " Instructionouterservice "/><include method=" Checksameinsbyid "/></create><convert converter=" Bean "match=" com.nstc.wst.model.InstructionOuter "><param name=" include "value=" Id,name "/></convert >spring configuration: <bean id= "Instructionouterservice" class= "Com.nstc.wst.server.InstractionCheckService" autowire= " ByName "><property name=" Paymenthelper "><ref bean=" Paymenthelper "/></property></bean>
Dwr is applied in spring