• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Best Ajax framework for Jsp/Servlet based Web Application DWR or jQuery?

 
Greenhorn
Posts: 3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Guys,

I have a jsp/servlet based application. We have conventional ajax implementation as a separate javascript file and is being used, where ever required to make ajax calls.
Now because of the huge requirement changes, it became very diffcult to maintain it.

I heard about many frameworks for Ajax like DWR and jQuery.
We are in a confusion to decide which one is the best among these two.


We have a separate servlet configured and separate business class which fetch the data from dao layer.
What could be the best Ajax framework among 'DWR and JQuery' for our simple JSP/Servlet based application ?

Thanks in Adnvance,
Vamsi.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
DWR and Jquery are different beasts.

DWR makes it easy to integrate backend call with Ajax.

JQuery does not give a crap what the server is, you code the backends anyway you want, it gives you tons of javaScript features.

Eric
 
Vamsi Krishna Annem
Greenhorn
Posts: 3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Eric!

Just need one more help,

I have a requirement like this:
When i enter values for two form fields, i have to make an ajax call and fetch values. Now these values are related to 3 different fields.
Field 1 : Drop down
Field 2: Drop down
Field 3: Text Area field.

In this scenario which framework is better ?
Also the maintenance should be minimal.

Appreciate your help

Thanks Again,
Vamsi.
 
Greenhorn
Posts: 11
jQuery Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Speaking of maintenance and maintainability I believe that jQuery is a better solution there are many ways in jQuery to implement your concepts, so if you want your Javascript code to be maintainable and you're going to use OOP in javascript jQuery will be more efficient.
Another approach for maintainable code is the JavascriptMVC framework (built using jQuery), but I don't know exactly what is your application about so you may not need such framework. for the example you mentioned I believe that jQuery could handle this issue.
 
Switching from electric heat to a rocket mass heater reduces your carbon footprint as much as parking 7 cars. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic