File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring AJAX Support

 
Mark Reyes
Ranch Hand
Posts: 426
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can I add ajax support in my spring mvc 2.5 web app. I have asked this because most of my spring form controls are binded to the spring form tag library.

I tried to search at the spring documentation but I cannot find anything related to ajax integration.

Also, If I use a library like Jquery, will I be able to integrate it into my current web apps. It does mentions about DWR but I wanted to try jquery for that matter.

I tried to google but I cant find a good resource that explains this.

Hope somebody can shed me light on this..
 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats where DWR comes. Have a look at it at

http://directwebremoting.org to know how to integrate AJAX functionality with Spring.
 
Mark Reyes
Ranch Hand
Posts: 426
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rajkumar,

Thanks for the reply..

In my book pro spring 2.5, it does mentions about DWR support in spring. But I was planning on applying Jquery as an ajax library.
At this point I cannot find enough resource on how to apply jquery on spring configurations.

Do you have resource that discusses about this? Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless I'm missing something really fundamental, why do you feel that you need some sort of special integration? Just import and use jQuery on the pages as you would any other pages.
 
Mark Reyes
Ranch Hand
Posts: 426
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear,

The truth is, I still dont know yet how to handle ajax call in the controller interface when I use Jquery.
I only find resources related to DWR configuration in spring.

I found this Spring JSON View Spring-JSON but I am not sure if many are using this or if this is scalable and dependable to use.

As of the moment, I am looking on using jquery on some of the client side stuff but use DWR on the ajax call. Not quite sure if this is efficient honestly
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic