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, from a client, one or more requests for a dynamic web content at the application server, wherein said application server initiates a request thread at a receipt of the one or more requests;
generating a JSP, wherein said JSP comprises one or more “
async include”
tags, wherein said tags indicate the asynchronous request for the dynamic web content;
activating a translation of the JSP to a Java servlet;
prompting the execution of the generated Java servlet;
triggering a number of further processing actions to facilitate the generation of one or more response fragments; and
transferring one or more response fragments to the client based on a reception of one or more poll requests, wherein said poll requests are facilitated by the JavaScript contained in each placeholder.
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.
14 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, from a client, one or more requests for a dynamic web content at the application server, wherein said application server initiates a request thread at a receipt of the one or more requests; generating a JSP, wherein said JSP comprises one or more “
async include”
tags, wherein said tags indicate the asynchronous request for the dynamic web content;activating a translation of the JSP to a Java servlet; prompting the execution of the generated Java servlet; triggering a number of further processing actions to facilitate the generation of one or more response fragments; and transferring one or more response fragments to the client based on a reception of one or more poll requests, wherein said poll requests are facilitated by the JavaScript contained in each placeholder. - View Dependent Claims (2, 3, 6)
-
-
4. A data processing 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 executing on the processor which code provides the functions 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, from a client, one or more requests for a dynamic web content at the application server, wherein said application server initiates a request thread at a receipt of the one or more requests; generating a JSP, wherein said JSP comprises one or more “
async include”
tags, wherein said tags indicate the request for the dynamic web content;activating a translation of the JSP to a Java servlet; prompting the execution of the generated Java servlet; triggering a number of further processing actions to facilitate the generation of one or more response fragments; and transferring one or more response fragments to the client based on a reception of one or more poll requests, wherein said poll requests are facilitated by the one or more Javascript placeholders. - View Dependent Claims (5)
-
-
7. A computer program product comprising:
-
a computer readable medium; and program code on said computer readable 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, from a client, one or more requests for a dynamic web content at the application server, wherein said application server initiates a request thread at a receipt of the one or more requests; generating a JSP, wherein said JSP comprises one or more “
async include”
tags, wherein said tags indicate the request for the dynamic web content;activating a translation of the JSP to a Java servlet; prompting the execution of the generated Java servlet; triggering a number of further processing actions to facilitate the generation of one or more response fragments; and transferring one or more response fragments to the client based on a reception of one or more poll requests, wherein said poll requests are facilitated by the one or more Javascript placeholders. - View Dependent Claims (8, 9)
-
Specification