Tomorrow I will hear whether I’m going to be the architect/team-lead on a major web 2.0 project, therefor I decided to have a look at the current state of some ajax frameworks. Since I have used prototype on a couple of projects before I decided to have a look around to get to know some of the other options.
Yesterday I started playing with DWR (Direct Web Remoting). It is a nice little framework to expose java method calls and beans to javascript using the XMLHttpRequest. To set it up you just add the dwr jar to your classpath, configure to dwr servlet in your web.xml and configure which methods and beans to expose in a dwr.xml config file (for more details on getting stared look here). After this dwr allows you to access your serverside java methods using javascript! Pretty amazing!
If a method returns a POJO which is configured in the dwr.xml file it is automatically ‘converted’ to a javascript object; this functionality makes working with DWR a breeze, and really intuitive… it feels like extending your java codebase into the client!




















0 Responses to “DWR”
Please Wait
Leave a Reply