Tuesday, December 11, 2007

My first DWR


Yeah, finally I am getting down with ajax framework. I have been reading about it but never took time to learn. One of my work project, I have decided to use ajax for confirmation and minor validations. There are so many Ajax frameworks out there, it's very hard to choose from. I decided to go with DWR because it seemed pretty easy to learn and they have good documentation. Here are some few issues that I have as a DWR user. I was keep getting an error about even though I was following step by step from this url. http://getahead.org/dwr/getstarted but I was still getting error was 'dwr' is undefined. After got few ideas from Jason Lee, I figured it out the problem.
I was trying to run DWR's demo example and here what I missed.

First thing, I forgot to add these following piece of code in my index.jsp page


Second thing, I forgot to add commons-logging-1.0.4.jar to my classpath

And very last I forgot to add

Since I had a Demo.java bean

So, summary is, DWR's http://getahead.org/dwr/getstarted is good but needed little more information for people like novice who never used DWR. Now everything working like a champ so I can have a good night sleep.

No comments: