SOPAjax allow services to be registered without implement any extra java interface. This is to promote reuse of the existing java methods as the ajax services.
Lots of implementation associate XML with Ajax, in fact there's how AJAX being coined, Asynchronous JavaScript and XML. Personally, I feel XML is overhead for most of the implementation, and it will be only useful when come to javascript fat client framework implementation. SOPAjax encourage the use of JSP for rendering by automated the JSP redirect after the service call. Prototype library are used to resolve cross-browser Ajax call compatible issues.
==================================
1. var sopAjax = new SOPAjax('Echo');
2. sopAjax.parameter = 'Hello World !';
3. sopAjax.jsp = 'red_table.jsp';
4. sopAjax.update('div_Text');
==================================
The above sample SOPAjax javascript will trigger the following flow :
1. Initialize a SOPAjax service instance with service code 'Echo'.
2. 'Hello World' are passed to the 'Echo' sopAjax service as service parameter.
3. Redirect the processing to 'red_table.jsp'.
4. Refresh DOM's "div_text" DIV with the return data.
Lots of implementation associate XML with Ajax, in fact there's how AJAX being coined, Asynchronous JavaScript and XML. Personally, I feel XML is overhead for most of the implementation, and it will be only useful when come to javascript fat client framework implementation. SOPAjax encourage the use of JSP for rendering by automated the JSP redirect after the service call. Prototype library are used to resolve cross-browser Ajax call compatible issues.
==================================
1. var sopAjax = new SOPAjax('Echo');
2. sopAjax.parameter = 'Hello World !';
3. sopAjax.jsp = 'red_table.jsp';
4. sopAjax.update('div_Text');
==================================
The above sample SOPAjax javascript will trigger the following flow :
1. Initialize a SOPAjax service instance with service code 'Echo'.
2. 'Hello World' are passed to the 'Echo' sopAjax service as service parameter.
3. Redirect the processing to 'red_table.jsp'.
4. Refresh DOM's "div_text" DIV with the return data.