AJAX applications usually connect to a server side application and request data in the form of XML. When the server side is written in JSP (Java Server Pages), for example a spring-framework web application with JSP views, writing the XML response is sometimes problematic.
When using JSP to format the data in to XML and send it to the AJAX application, the XML is not recognized as XML (empty DOM object) and the AJAX application does not function properly.
Add this to the beginning of the JSP
In addition, make sure there are no spaces between this addition and the root tag of the XML in the JSP, these spaces might create the same problem.
An example of this AJAX-JSP communication can be found in the Spring-dashboard code under the examples folder in this release (files: monitorData.jsp and monitor.jsp)
Another issue you might face with AJAX is client side caching. You can read more about this and how to solve this issue in this article – Solving the browser caching problem of AJAX applications
Do you mind if I quote a couple of your articles as long as I provide credit and sorces back to your webpage?
My website is in the very same area of interest as
yours and my users would genuinely benefit from some of the information you prvide here.
Please let mee know if this lright with you. Regards!