Thursday, August 25th, 2005

Developing Ajax Applications with DWR

Category: Articles

java.net have just published a step-by-step tutorial on writing a web chat app using DWR.

The final result is a web-chat app, in about 100 lines of code – client and server. The point being how easy it is to get started with DWR.

We could have gone into detail about using Scriptaculous for fancy effects, or created more server side features like one-to-one messages and so on. The point however is to demonstrate how easily DWR can take data in Java on the server and transparently turn it into Javascript arrays and lists and then put that data in the browser.

The article walks through the various pieces of putting together this chat application:

  • Chat HTML
  • Server-Side Java Code
  • Configuring DWR
  • Client-Side JavaScript Code

DWR Chat Example

( via Joe Walker )

Posted by Dion Almaer at 12:11 pm
Comment here

++++-
4.5 rating from 4 votes

Comments Here »

Comments feed

Leave a comment

You must be logged in to post a comment.