Method for developing a custom tagbean
First Claim
Patent Images
1. A process for serving a web page, the process comprising the steps of:
- prior to receiving a request for the web page, generating a Java object that implements an interface that defines a method for performing a function against an element in a Document Object Model (DOM) tree representing the web page;
in response to receiving an initial request for the web page;
generating a DOM tree representing the web page;
replacing a custom tag in the DOM tree with a script;
processing the DOM tree to generate a servlet having a method call that is generated as a result of processing the script, wherein execution of the method call invokes the method in the Java object;
in response to receiving the initial request or a subsequent request for the web page;
executing the servlet; and
invoking the method in the Java object.
3 Assignments
0 Petitions
Accused Products
Abstract
A method for simplifying the development, testing and maintenance of code objects that may be used, for example, to generate custom web page content. According to the invention, a developer isolates a given task, generates code for the task, and then provides a means by which a page-generating Java servlet can access that code at request time. The code may be generated at any time, and the servlet preferably is generated at translation time, i.e. when a request for the page is first made at a server. In a preferred embodiment, the code for the task is supported within a given method of a Java tagbean.
59 Citations
18 Claims
-
1. A process for serving a web page, the process comprising the steps of:
-
prior to receiving a request for the web page, generating a Java object that implements an interface that defines a method for performing a function against an element in a Document Object Model (DOM) tree representing the web page; in response to receiving an initial request for the web page; generating a DOM tree representing the web page; replacing a custom tag in the DOM tree with a script; processing the DOM tree to generate a servlet having a method call that is generated as a result of processing the script, wherein execution of the method call invokes the method in the Java object; in response to receiving the initial request or a subsequent request for the web page; executing the servlet; and invoking the method in the Java object. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program product in a computer-useable medium for serving a web page, the computer program product comprising:
-
means for generating a Java object that implements an interface that defines a method for performing a function against an element in a Document Object Model (DOM) tree representing the web page prior to receiving a request for the web page; means responsive to receiving an initial request for the web page;
(a) for generating a DOM tree representing the web page;
(b) for replacing a custom tag in the DOM tree with a script;
(c) for processing the DOM tree to generate a servlet having a method call that is generated as a result of processing the script, wherein execution of the method call invokes the method in the Java object;means responsive to receiving the initial request or a subsequent request for the web page;
(d) for executing the servlet; and
(e) for invoking the method in the Java object. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer system comprising:
-
a processor; system memory; means for generating a Java object that implements an interface that defines a method for performing a function against an element in a Document Object Model (DOM) tree representing the web page prior to receiving a request for the web page; means responsive to receiving an initial request for the web page;
(a) for generating a DOM tree representing the web page;
(b) for replacing a custom tag in the DOM tree with a script;
(c) for processing the DOM tree to generate a servlet having a method call that is generated as a result of processing the script, wherein execution of the method call invokes the method in the Java object;means responsive to receiving the initial request or a subsequent request for the web page;
(d) for executing the servlet; and
(e) for invoking the method in the Java object. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification