1

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.

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140

2 Answers2

4

This is correct use JQuery

Here http://blog.springsource.com/2010/01/25/ajax-simplifications-in-spring-3-0/

you can find working examples to use Jquery+JSON+Spring MVC.

and this question can help you with server side configuration: JQuery, Spring MVC @RequestBody and JSON - making it work together

Community
  • 1
  • 1
danny.lesnik
  • 18,479
  • 29
  • 135
  • 200
2

I would suggest jQuery. It is very easy to use and has very good ajax support.

In addition to that it has quite a lot of plugins and components.

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140