- Put dwr.jar in your Project's lib.
- Put the Commons Logging Jar in your Projects's lib. ( Dwr uses Apache Commons Logging )
- Add the configuration settings in your web.xml for the DWR Servlet.
- Add the debugging parameters for the DWR Servlet during the development phase.
- Add the dwr.xml under WEB-INF and configure it to expose your Java Classes.
- Add the converters in dwr.xml to ensure the conversion of Java POJOs to JavaScript Objects & vice versa.
- Include the reference to all the JavaScript libraries required in your JSPs.
Download example here
It’s an eclipse project, you can just download and import the project and run