Ajax solution with JsJava(jsjava-ajax-2.0.js):
Ajax becomes more and more important and popular along with web2.0. Now there are some excellent ajax solution such as well known prototype.js.
JsJava offers a simple and object-oriented ajax solution,with which you can use ajax in an easy way.Of course,JsJava2.0 only offers an encapsulation to the browser ajax request.But with that,you can control more detail to ajax request.
Belowe is an example.
ajax.jsp:
ajaxresponse.jsp:
When the page ajax.jsp is on load, the display is:
Some ajax solution uses encodeURIComponent method to encode url by default.JsJava does'nt do like that because in many time it will make some trouble to pages encoded with none utf-8.