File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Ajax with Spring MVC Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Application Frameworks » Other Application Frameworks
Reply Bookmark "Ajax with Spring MVC" Watch "Ajax with Spring MVC" New topic
Author

Ajax with Spring MVC

James Daniel
Ranch Hand

Joined: Sep 24, 2004
Posts: 69
I have written a Spring MVC application and use DisplayTag for displaying tables. I would like to Ajax enable DisplayTag for my application. I would like a page to automatically update without a refresh as elements are added to the database. I have tried AjaxTags and AjaxAnywhere but have been unable to make them work. Does anyone have any workable examples of AjaxTags or AjaxAnywhere or suggestions on another path? Any suggestion would be greatly appreciated.

Jim
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 48842

Moved to Application Frameworks.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1287


I have tried AjaxTags and AjaxAnywhere but have been unable to make them work


which example you used.. and error detail you are facing..

Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
James Daniel
Ranch Hand

Joined: Sep 24, 2004
Posts: 69
Muhammad,

I tried the following examples:

http://www.lucianofiandesio.com/javatales/ajxfuse.html
http://www.ajaxmatters.com/articles/gen/ajaxtags_1_p1.aspx
http://www.ajaxmatters.com/articles/gen/ajaxtags_2_p1.aspx

I also tried others but can't remember the URLs. It seems as if the documentation is not update to date. I wrote a work around that formats the table and then sends HTML to page. I know it is terrible but needed to continue on with project. If you have any idea, please forward them on. I would be grateful.

Jim
Richard Grigg
Greenhorn

Joined: Nov 07, 2006
Posts: 2
Muhammed,

If you're using Spring MVC then you might consider using DWR with Spring

http://bram.jteam.nl/index.php/2007/01/31/spring-dwr-ajax-made-easy/



James Daniel
Ranch Hand

Joined: Sep 24, 2004
Posts: 69
Richard,

This looks like a good article. I will give it a try. Thanks so much.

Jim
 
 
subject: Ajax with Spring MVC
 
developer file tools