Reengineering Template-Based Web Applications to Single Page AJAX Applications


KIPS Transactions on Software and Data Engineering, Vol. 1, No. 1, pp. 1-6, Oct. 2012
10.3745/KTSDE.2012.1.1.1,   PDF Download:

Abstract

Web pages in a template-based web application (TWA) are automatically populated using a template shared by the pages with contents specific to the pages. So users can easily obtain information guided by a consistent structure of the template. Reduced duplicated code helps to increase the level of maintainability as well. However, TWA still has the interaction problem of classic web applications that each time a user clicks a hyperlink a new page is loaded, although a partial update of the page is desirable. This paper proposes a reengineering technique to transform the multi-page structure of legacy Java-based TWA to a single page one with partial page refresh. In this approach, hyperlinks in HTML code are refactored to AJAX-enabled event handlers to achieve the single page structure. In addition, JSP and Servlet code is transformed in order not to send data unnecessary for the partial update. The new single page consists of individual components that are updateable independently when interacting with a user. Therefore, our approach can improve interactivity and responsiveness towards a user while reducing CPU and network usage. The measurement of our technique applied to a typical TWA shows that our technique improves the response time of user requests over the TWA in the range from 1 to 87%.


Statistics
Show / Hide Statistics

Statistics (Cumulative Counts from September 1st, 2017)
Multiple requests among the same browser session are counted as one view.
If you mouse over a chart, the values of data points will be shown.


Cite this article
[IEEE Style]
J. Oh, H. C. Choi, S. H. Lim, W. H. Ahn, "Reengineering Template-Based Web Applications to Single Page AJAX Applications," KIPS Transactions on Software and Data Engineering, vol. 1, no. 1, pp. 1-6, 2012. DOI: 10.3745/KTSDE.2012.1.1.1.

[ACM Style]
Jaewon Oh, Hyeon Cheol Choi, Seung Ho Lim, and Woo Hyun Ahn. 2012. Reengineering Template-Based Web Applications to Single Page AJAX Applications. KIPS Transactions on Software and Data Engineering, 1, 1, (2012), 1-6. DOI: 10.3745/KTSDE.2012.1.1.1.