aspose file tools*
The moose likes Spring and the fly likes Integrate Spring MVC and Ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Integrate Spring MVC and Ajax" Watch "Integrate Spring MVC and Ajax" New topic
Author

Integrate Spring MVC and Ajax

Fabrizio Cappelletti
Greenhorn

Joined: Mar 16, 2011
Posts: 4
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

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Fabrizio Cappelletti
Greenhorn

Joined: Mar 16, 2011
Posts: 4
In your opinion, between JScript and Dojo (through Spring JS) what is the solution with the least code "effort"?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Integrate Spring MVC and Ajax
 
Similar Threads
spring modules integration
Ajax with Spring
Enums in JSPs
Spring mvc and Ajax
Spring 2.5 with Ajaxtags