The Spring framework only has one stateless scope, called prototype, and the rest of its features are stateless in nature, since it purely uses the HTTP protocol for its request-response transactions. Applications like BTS will be accessed by many users who want to check bus availability, travel perks and other discounts open for a season. To help Spring in responding to several user transactions with one button submission, or to select event, the AJAX model has been adapted to this project.
AJAX uses JavaScript frameworks to simulate multiple request-response transactions at the side of the main HTTP request response. This model utilizes XML or JSON as request and response data. The client generates a data model to be processed by AJAX which will transform that model to an AJAX or XML request parameter. Once the parameter reaches the server, an XML or JSON response will be sent back to the original webpage for rendition. The following figure shows the whole picture...