Ajax request processing using Spring MVC 3.X

Are you trying to integrate DWR and Spring MVC 3.X? If your answer is yes, then you’re wasting valuable development time in fixing integration problems.
May be it is good to have DWR library for Ajax calls while developing a web application, but when you are using Spring MVC3 for developing your application this is not a good solution, because Spring Frame work itself capable for handling Ajax Calls. In this article, I would like to explain

Basic way of handling Ajax calls using Spring MVC:

  1. Dependency configuration:
    <dependency>
    
    <groupId>org.springframework</groupId>
    
    <artifactId>spring-beans</artifactId>
    
    <version>3.1.3.RELEASE</version>
    
    </dependency>
    
    <dependency>
    
    <groupId>org.springframework</groupId>
    
    <artifactId>spring-context</artifactId>
    
    <version>3.1.3.RELEASE</version>
    
    </dependency>
    
    <dependency>
    
    <groupId>org.springframework</groupId>
    
    <artifactId>spring-web</artifactId>
    
    <version>3.1.3.RELEASE</version>
    
    </dependency>
    
    <dependency>
    
    <groupId>org.springframework</groupId>
    
    <artifactId>spring-webmvc</artifactId>
    
    <version>3.1.3.RELEASE</version>
    
    </dependency>
    
    <dependency>
    
    <groupId>org.springframework</groupId>
    
    <artifactId>spring-core</artifactId>
    
    <version>3.1.3.RELEASE</version>
    
    </dependency>
    
     
  2. Server Side Coding: The code below describes how to write a Controller to process asynchronous requests.
    Content in this post has been moved,  please Click Here…  for new location of the actual contentSorry for the inconvenience. Please click the above link to continue to read.This is all because the content has been moved to the new website www.dailypaper.in/technical/.

    Please follow me in the new website www.dailypaper.in/technical for more technical stuff.

About these ads

2 comments on “Ajax request processing using Spring MVC 3.X

  1. This Post is basically for who still struggling and wasting time in fixing integration problems with Spring MVC and DWR

  2. Rich Goyer says:

    Good stuff

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s