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


Okke en Rudie smashmouth Golden Gate Acme Anvile at CommunityOne Keynote Tim Bray introducing the (J)Ruby panel Stretched Limo Joshua Bloch at JavaOne2008 Cable Car line Greenland Moscone Center - JavaOne Hotel room Scribbled Sun Logo Community One Keynote javaone2008 keynote sea_lion pub golden_gate_warning_sign Rudie Charles Nutter & Guillaume Laforge nearby hotel
View more photos >

Categories



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