A new method to develop with ajax application
As we knew , if we want to invoke the services or data from remote server, it’s called ajax, the first step to set up an ajax demo is to create a remote page or service in your web server, then by the script located into browser, we could get what we want in our client.
The process is similar with this .
After understanding the basic concept about this process , I conclude another method to develop with ajax application. For that, I call it “configurating ajax development”.
For the first, I create a configuration file on the server, reloading that file every time when web application server starts up, in the configuration file, a kind of XML format, some segments and elements are defined there, then we use a single servlet source , by that, we invoke the javascript functions to get remote data from servlet page, especially, I will make more introduction about the process and how they work.
As follows, a diagram is presented here .
By using the reflecting foundation, we can get instance from loaded file, and get executing result. It seems to be easy.

本文介绍了一种新的Ajax应用开发方法——配置式Ajax开发。该方法通过在服务器上创建配置文件,并利用反射机制从加载的文件中获取实例及执行结果。开发过程中仅需一个Servlet作为数据源,通过调用JavaScript函数即可实现客户端与远程服务器的数据交互。
1万+





