DWR

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”

  1. No Comments

Leave a Reply





About

Welcome to the weblog of Peter Maas. Here you'll find various posts related to stuff I like (like my kids and espresso) and stuff I do (like developing software).

JavaOne 2008 Pictures

IMG_4616.JPG IMG_4568 Greenland graffiti 'boobs' sjoerd op klimrek sea_lion tarte tatin of red unions Obie Fernandez sfeervolverlichte boot IMG_4611.JPG high voltage wires Charles Nutter on JRuby red bar Danielle op de bruggen van Beeld en Geluid IMG_4570 IMG_4614.JPG IMG_4571 trouwauto overburen vlieg Hotel room
View more photos >

Categories



Meld u aan voor PayPal en begin direct met het accepteren van creditcardbetalingen.