« AJAX@localhost Slides available | Main | Rotating Ads with AJAX »

AMP, AJAX for Java API

AMP is a framework-independant Java API that enables processing of AJAX requests in a normal MVC pattern. It is currently integrated with the Spring framework to allow for easy configuration. It was inspired by Ruby on Rails partials. The latest version of AMP 0.9 Beta is available for download under Apache 2.0 license. The main benefits of AMP are :

- Single controller is capable of rendering AJAX or in-line requests, without knowing the difference (no code duplication)
- NO out.println required to write HTML or JavaScript. AMP facilitates writing basic controllers that forward to a view. The view can generate HTML and/or JavaScript that will be sent as the response.
- Minimal learning curve. AMP introduces 2 new tags, one servlet filter, and one new Spring bean (the AMP context). No need to subclass or implement anything new in your controllers.
- Work with regular request parameters, in-line requests can access pageContext and request attributes of the initiating request.
- Easy debugging of in-line request, they are seen in view source!

Bookmark this article at these sites
Comments
Post a comment





(Email will remain hidden)





Please enter the security code you see here




Related entries
Email to a friend
Email this article to:


Your email address:


Message (optional):