The AJAX Tag Library is a set of JSP tags that simplify the use of Asynchronous JavaScript and XML (AJAX) technology in JavaServer Pages.
AjaxTag是通过一个Helper class(AjaxXmlBuilder)生成一段xml, 让客户端js(ResponseXmlParser)解析.
//
Get maker from your service bean
CarService service
=
new
CarService();
List list
=
service.getModelsByMake(make);
return
new
AjaxXmlBuilder().addItems(list,
"
model
"
,
"
make
"
).toString();
Latest Release: 1.2 beta2
下载ajaxtags-1.2-beta2.war, 在tomcat下deploy后即可看到各种tag的用法. 官方有详细的Install, Quick Start, Usage文档.