System and method for caching JavaServer Pages™ responses
First Claim
1. A method for caching JavaServer Page (JSP) component responses, the method comprising:
- receiving a first request referencing a JSP component;
executing the JSP component in response to receiving the first request, wherein said executing the JSP component comprises specifying caching criteria to associate with a response resulting from said executing the JSP component;
storing the response resulting from said executing the JSP component in a cache, wherein said storing the response resulting from said executing the JSP component in a cache comprises associating the caching criteria with the response;
returning the response resulting from said executing the JSP component as the results for the first request;
receiving a second request referencing the JSP component;
retrieving the response resulting from said executing the JSP component from the cache in response to receiving the second request;
returning the response resulting from said executing the JSP component as the results for the second request.
4 Assignments
0 Petitions
Accused Products
Abstract
System and method for caching JavaServer Page™ (JSP) component responses. The JSP components may be components that execute on an application server that supports networked applications, such as web applications or other Internet-based applications. One or more client computers, e.g., web servers, may perform requests referencing the JSP components on the application server. The execution of JSP components may be managed by a JSP engine process running on the application server. When a request referencing a JSP is received from a client computer, the JSP engine may first check a JSP response cache to determine whether a valid JSP response satisfying the request is present. If a matching cached response is found, then the response may be retrieved and immediately streamed back to the client. Otherwise, the referenced JSP may be executed. Each JSP file may comprise various SetCacheCriteria( ) method calls. When executed, the SetCacheCriteria( ) call may cause the output of the JSP to be cached once the JSP execution is complete. Arguments to the SetCacheCriteria( ) call may specify a criteria set that should be associated with the cached JSP response. This criteria set may then be used to match against attributes of future JSP requests, as described above. In particular embodiments, any of various types of cache criteria may be supported.
311 Citations
20 Claims
-
1. A method for caching JavaServer Page (JSP) component responses, the method comprising:
-
receiving a first request referencing a JSP component;
executing the JSP component in response to receiving the first request, wherein said executing the JSP component comprises specifying caching criteria to associate with a response resulting from said executing the JSP component;
storing the response resulting from said executing the JSP component in a cache, wherein said storing the response resulting from said executing the JSP component in a cache comprises associating the caching criteria with the response;
returning the response resulting from said executing the JSP component as the results for the first request;
receiving a second request referencing the JSP component;
retrieving the response resulting from said executing the JSP component from the cache in response to receiving the second request;
returning the response resulting from said executing the JSP component as the results for the second request. - View Dependent Claims (2, 3, 4, 5, 6, 7)
wherein the caching criteria includes a “ - time”
argument indicating a length of time for which the response resulting from said executing the JSP component should be considered valid.
-
3. The method of claim 1,
wherein the caching criteria includes a “ - constraint set”
argument specifying a set of constraints that must be satisfied in order for the response resulting from said executing the JSP component to be considered valid.
- constraint set”
-
4. The method of claim 1,
wherein the second request comprises one or more attributes; -
wherein, in response to receiving the second request, the one or more attributes are matched against the caching criteria associated with the response;
wherein said retrieving and returning the response resulting from said executing the JSP component are performed only if said matching is successful.
-
-
5. The method of claim 1,
wherein said specifying the caching criteria comprises processing tags included in the JSP component code. -
6. The method of claim 1,
wherein said specifying the caching criteria comprises invoking a method specified by the JSP component. -
7. The method of claim 1,
wherein the JSP component is a component that executes on an application server.
-
-
8. A system for caching JavaServer Page (JSP) component responses, the system comprising:
-
a client computer connected via a network to an application server computer;
a JSP component that runs on the application server computer;
wherein the application server computer is operable to;
receive a first request referencing the JSP component from the client computer;
execute the JSP component in response to receiving the first request, wherein said executing the JSP component comprises specifying caching criteria to associate with a response resulting from said executing the JSP component;
store the response resulting from said executing the JSP component in a cache, wherein said storing the response resulting from said executing the JSP component in a cache comprises associating the caching criteria with the responses return the response resulting from said executing the JSP component as the results for the first request;
receive a second request referencing the JSP component from the client computer;
retrieve the response resulting from said executing the JSP component from the cache in response to receiving the second request;
return the response resulting from said executing the JSP component as the results for the second request. - View Dependent Claims (9, 10, 11, 12, 13)
wherein the caching criteria includes a “ - time”
argument indicating a length of time for which the response resulting from said executing the JSP component should be considered valid.
-
10. The system of claim 8,
wherein the caching criteria includes a “ - constraint set”
argument specifying a set of constraints that must be satisfied in order for the response resulting from said executing the JSP component to be considered valid.
- constraint set”
-
11. The system of claim 8,
wherein the second request comprises one or more attributes; -
wherein, in response to receiving the second request, the one or more attributes are matched against the caching criteria associated with the response;
wherein said retrieving and returning the response resulting from said executing the JSP component are performed only if said matching is successful.
-
-
12. The system of claim 8,
wherein said specifying the caching criteria comprises processing tags included in the JSP component code. -
13. The system of claim 8,
wherein said specifying the caching criteria comprises invoking a method specified by the JSP component.
-
-
14. A memory medium comprising program instructions operable to:
-
receive a first request referencing a JSP component;
execute the JSP component in response to receiving the first request, wherein said executing the JSP component comprises specifying caching criteria to associate with a response resulting from said executing the JSP component;
store the response resulting from said executing the JSP component in a cache wherein said storing the response resulting from said executing the JSP component in a cache comprises associating the caching criteria with the responses;
return the response resulting from said executing the JSP component as the results for the first request;
receive a second request referencing the JSP component;
retrieve the response resulting from said executing the JSP component from the cache in response to receiving the second request;
return the response resulting from said executing the JSP component as the results for the second request. - View Dependent Claims (15, 16, 17, 18, 19, 20)
wherein the caching criteria includes a “ - time”
argument indicating a length of time for which the response resulting from said executing the JSP component should be considered valid.
-
16. The memory medium of claim 14,
wherein the caching criteria includes a “ - constraint set”
argument specifying a set of constraints that must be satisfied in order for the response resulting from said executing the JSP component to be considered valid.
- constraint set”
-
17. The memory medium of claim 14,
wherein the second request comprises one or more attributes; -
wherein, in response to receiving the second request, the one or more attributes are matched against the caching criteria associated with the response;
wherein said retrieving and returning the response resulting from said executing the JSP component are performed only if said matching is successful.
-
-
18. The memory medium of claim 14,
wherein said specifying the caching criteria comprises processing tags included in the JSP component code. -
19. The memory medium of claim 14,
wherein said specifying the caching criteria comprises invoking a method specified by the JSP component. -
20. The memory medium of claim 14,
wherein the JSP component is a component that executes on an application server.
-
Specification