|
|
|||
Ahmed Hashim's BlogPosted by ahashim on March 12, 2007 at 09:48 AM | Comments (0)http://egjug.org/hashimblog/2007/01/03/dwr-hello-world/
I made a simple chat application with DWR and I liked the simplicity of this framework, will present now how to make Hello World and may continue in the future blogging about DWR. 1- Whats is DWR? DWR (Direct Web Remoting) is a Java/JavaScript OpenSource library which allow you to write AJAX enable application with Java without the need to use XMLHTTPRequest and other low-level javascript staff. 2- Why DWR is different? You can invoke Java Bean's method directly from within JavaScript block! No XMLHTTPRequest, No Servlet, You can Recerse AJAX!!! which means calling JavaScript Methods from Java Code! 3- How DWR will handle this staff? The DWR library will create a servlet for you to handle this staff, but you will have to declare your Java classes in dwr.xml file. 4- How to?
As you can see in few steps you can start working with DWR and produce Rich Clients with AJAX features without writting low-level javascript. The attached war file include the demo source code and can be deployed in any servlet container. I hope that you can see this post useful and would like to continue in DWR posts. Bookmark blog post: CommentsComments are listed in date ascending order (oldest first) | Post Comment | |||
|
|