• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Integrate Spring MVC and Ajax

 
Fabrizio Cappelletti
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm developing a webapp with Hibernate+Spring 3 (Spring MVC, JSP): I'd like to create some divs with AJAX style (i.e. no need to refresh all the page, independent update of each div).

I'd like a good advice about which AJAX library to use (in conjunction with Spring 3 MVC + JSP) and, if possible, where to find some code snippets.

I know very little of AJAX libraries, JSONs and how to integrate them, but I have good knowledge of Javascript and Spring (and how callbacks work). I'd like to write as less code as possible, particularly in the jsps.

My Webapp will display an updated (every 5 minutes) POJO in a div and perform some operations between different domain objects in the other div when user press a button.


Thanks!
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, in some perspective there is no integration needed? They just work together. I will say that JQuery is the most common JavaScript library used. Spring does have a JavaScript library that you can also use, but it is based on Dojo.

Mark
 
Fabrizio Cappelletti
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your opinion, between JScript and Dojo (through Spring JS) what is the solution with the least code "effort"?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fabrizio Cappelletti wrote:In your opinion, between JScript and Dojo (through Spring JS) what is the solution with the least code "effort"?


Always depends on what you are doing. Personally, straight JavaScript to me is not a solution. Using Spring JS or JQuery. MooTools is also good.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic