Method for client-side aggregation of asynchronous, context-sensitive request operations for java server pages (JSP)
First Claim
1. In an application server receiving a request for dynamic web content, a method comprising:
- defining a number of custom Java classes within a class library, wherein said classes allow an asynchronous processing of a number of requests for dynamic web content;
receiving at the application server, from a client, one or more asynchronous requests for a dynamic web content;
said application server calling a dispatcher function to handle the asynchronous processing of each associated request dispatcher include fragment;
initiating a separate request thread for each fragment following receipt of the one or more asynchronous requests;
generating a Java Server Page (JSP) comprising one or more “
async include”
tags that indicate that the JSP represents an asynchronous request for the dynamic web content;
writing, to a servlet response buffer, a placeholder corresponding to each JSP having an “
async include”
tag;
creating JavaScript for each placeholder;
sending an initial response containing the JavaScript to the client;
terminating an original execution thread;
triggering a number of further processing actions to facilitate the generation of one or more response fragments; and
transferring the one or more response fragments to the client in response to receipt from the client of one or more poll requests that are facilitated by the JavaScript contained in each placeholder, wherein the JavaScript enables the client to retrieve include fragments which replace corresponding placeholders.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, system, and computer program product for efficiently fulfilling java server page (JSP) requests for dynamic web content, in a computer network system. An asynchronous processing (AP) utility pre-defines a number of custom classes to enable the asynchronous processing of requests. A JSP which contains a custom “async:include” tag indicates an asynchronous request for dynamic content. When a set of asynchronous requests are received by an application server, an “AsyncRequestDispatcher” is called to handle the asynchronous processing of each associated request dispatcher include fragment. For each fragment, a separate request thread is initiated. A placeholder corresponding to each “async:include” request is written to a servlet response buffer. HyperText Markup Language (HTML) content, which includes the placeholders, and a number of javascripts are then written to the client browser. The original thread is closed. The Javascripts enable the retrieval of all response fragments which replace the corresponding placeholders.
-
Citations
9 Claims
-
1. In an application server receiving a request for dynamic web content, a method comprising:
-
defining a number of custom Java classes within a class library, wherein said classes allow an asynchronous processing of a number of requests for dynamic web content; receiving at the application server, from a client, one or more asynchronous requests for a dynamic web content; said application server calling a dispatcher function to handle the asynchronous processing of each associated request dispatcher include fragment; initiating a separate request thread for each fragment following receipt of the one or more asynchronous requests; generating a Java Server Page (JSP) comprising one or more “
async include”
tags that indicate that the JSP represents an asynchronous request for the dynamic web content;writing, to a servlet response buffer, a placeholder corresponding to each JSP having an “
async include”
tag;creating JavaScript for each placeholder; sending an initial response containing the JavaScript to the client; terminating an original execution thread; triggering a number of further processing actions to facilitate the generation of one or more response fragments; and transferring the one or more response fragments to the client in response to receipt from the client of one or more poll requests that are facilitated by the JavaScript contained in each placeholder, wherein the JavaScript enables the client to retrieve include fragments which replace corresponding placeholders. - View Dependent Claims (2, 3, 6)
-
-
4. A system comprising:
-
a processor which executes a JSP server application software; a memory system which stores the JSP server application software; a mechanism for connecting to a network having one or a more clients; a utility having code that executes on the processor and causes the processor to; define a number of custom java classes within a class library, wherein said classes allow an asynchronous processing of a number of requests for dynamic web content; receive at the application server, from a client, one or more requests for a dynamic web content; said application server calling a dispatcher function to handle the asynchronous processing of each associated request dispatcher include fragment; initiate a separate request thread for each fragment following receipt of the one or more asynchronous requests; generate a Java Server Page (JSP), comprising one or more “
async include”
tags that indicate that the JSP represents an asynchronous request for the dynamic web content;write, to a servlet response buffer, a placeholder corresponding to each JSP having an “
async include”
tag;create JavaScript for each placeholder; send an initial response containing the JavaScript to the client; terminate an original execution thread; trigger a number of further processing actions to facilitate the generation of one or more response fragments; and transfer the one or more response fragments to the client in response to receipt from the client of one or more poll requests that are facilitated by the one or more Javascript placeholders, wherein the JavaScript enables the client to retrieve include fragments which replace corresponding placeholders. - View Dependent Claims (5)
-
-
7. A computer program product comprising:
-
a tangible computer readable storage medium; and program code stored on said tangible computer readable storage medium that when executed within a server computer system, said program code provides the functionality of; defining a number of custom java classes within a class library, wherein said classes allow an asynchronous processing of a number of requests for dynamic web content; receiving at the application server, from a client, one or more requests for a dynamic web content; said application server calling a dispatcher function to handle the asynchronous processing of each associated request dispatcher include fragment; initiating a separate request thread for each fragment following receipt of the one or more asynchronous requests; generating a Java Server Page (JSP) comprising one or more “
async include”
tags that indicate that the JSP represents an asynchronous request for the dynamic web content;writing, to a servlet response buffer, a placeholder corresponding to each JSP having an “
async include”
tag;creating JavaScript for each placeholder; sending an initial response containing the JavaScript to the client; terminating an original execution thread; triggering a number of further processing actions to facilitate the generation of one or more response fragments; and transferring the one or more response fragments to the client in response to receipt from the client of one or more poll requests that are facilitated by the one or more JavaScript placeholders, wherein the JavaScript enables the client to retrieve include fragments which replace corresponding placeholders. - View Dependent Claims (8, 9)
-
Specification