Announcement Announcement Module
No announcement yet.
spring and ajax Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring and ajax

    does spring supports ajax ? is any ajax spring example ?


  • #2
    Spring doesn't do AJAX directly. You'll want to use an AJAX library like DWR or JSON-RPC to add remoting capabilities to JavaScript.

    I use JSON-RPC, as it has a very broad range of supported platforms. For detailed integration instructions, see a post I made at


    • #3
      you can also have a look at this, which I knocked up for the "Expert Spring MVC and Web Flow" book:


      • #4
        Similarly, +1 for JSON-RPC, see my earlier post at


        • #5
          thanks your


          • #6
            After reading the "Expert Spring MVC and Web Flow" book, which I can really recommend, I did a small prototype using DWR and I was surprised how simple and smooth it all went.

            I'd have to go more into the details to really understand the DWR implementation and to compare it to JSON-RPC. Maybe somebody here already did this comparison. I would be very interested in the findings.

            Topics I am worried about:
            - how is the authentication handled (what happens if the Servlet Session times out)
            - What wire protocol is used (efficiency)
            - Support on top of the "remoting" like high level widgets and Ajax-Patterns.




            • #7
              ajax n spring


              I am trying to configure the DWR with Spring MVC Pattern. But the request is not getting into the controller which i deisgned for spring MVC.

              Not able to configure with DWR.. Please help


              • #8
                DWR is pretty good but have you looked at IceFaces? They have lots of ready-to-use components. Ajax4JSF is another interesting project. And then you have Seam...

                The only problem is that you need to use JSF ... Try JSF/Facelets and you'll be surprised how productive you get.