Pattern using JSP-servlet-helper classes for an order mangement system
First Claim
1. A computer-implemented method, comprising:
- a server computer providing a first page in a high order presentation language to a client computer for display, wherein the first page is associated with an electronic form of an application currently executing on at least the server computer and comprises an encoding of said electronic form, wherein said electronic form is one of a plurality of electronic forms associated with respective pages, wherein each of the plurality of electronic forms is mapped to a respective one of a plurality of server-side processing components for processing user input received for the respective electronic form, wherein each of the server-side processing components is deployed upon the server computer, and wherein at least two of the electronic forms are mapped to different respective ones of the plurality of server-side processing components, such that user input for different electronic forms is processed by different respective ones of the server-side processing components;
the server computer receiving input indicating a user action that is performed on the first page and that represents an action to be implemented on the electronic form of the currently executing application that is associated with the first page; and
in response to said receiving;
the respective one of the plurality of server-side processing components that is mapped to the electronic form that is associated with the first page generating a second page in a high order presentation language; and
the respective one of the plurality of server-side processing components that is mapped to the electronic form that is associated with the first page providing the second page to the client computer for display;
wherein said generating the second page comprises;
calling a helper class method corresponding to the action to be implemented on the electronic form;
calling a corresponding render method;
in response to said calling a helper class method, said helper class method performing the action on the electronic form; and
in response to said calling a corresponding render method and dependent on the performance, by the helper class method, of the action on the electronic form, said render method performing;
populating a name value pair with corresponding data;
applying said name value pair populated with said data to a vehicle for displaying dynamic content on pages in a high order presentation language; and
drafting said second page;
wherein the method further comprises;
the server computer receiving input indicating a second user action that represents a second action to be implemented on another electronic form of the application currently executing on at least the server computer; and
in response to receiving the input indicating the second user action, a different one of the plurality of server-side processing components that is mapped to the other electronic form generating another page in a high order presentation language, wherein said generating another page comprises calling at least one of the same said helper class method and the same said render method that was called for said generating the second page such that the respective one and the different one of the plurality of server-side processing components both call the same at least one of the said helper class method and said render method for generating the second page and the other page, respectively.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and system for handling requests from a user and rendering a resulting page in HTML useful in effectuating aspects of an order management system, which reduces the redundancy in the underlying code required to effectuate the HTML page. An embodiment of the present invention modularizes various parts of an HTML page, effectuating the re-use of certain portions of code, advantageously reducing redundancy. In one embodiment, the present invention associates each HTML page with a form mapped to a servlet in a system backend. The servlet performs appropriate action based on corresponding user action. Each user action calls a set of re-usable helper class methods. Upon completion of processing, the servlet calls a render method. The active render method internally calls re-usable render methods in helper classes. These populate NTV data used by a JSP to generate a new HTML page accordingly.
-
Citations
22 Claims
-
1. A computer-implemented method, comprising:
-
a server computer providing a first page in a high order presentation language to a client computer for display, wherein the first page is associated with an electronic form of an application currently executing on at least the server computer and comprises an encoding of said electronic form, wherein said electronic form is one of a plurality of electronic forms associated with respective pages, wherein each of the plurality of electronic forms is mapped to a respective one of a plurality of server-side processing components for processing user input received for the respective electronic form, wherein each of the server-side processing components is deployed upon the server computer, and wherein at least two of the electronic forms are mapped to different respective ones of the plurality of server-side processing components, such that user input for different electronic forms is processed by different respective ones of the server-side processing components; the server computer receiving input indicating a user action that is performed on the first page and that represents an action to be implemented on the electronic form of the currently executing application that is associated with the first page; and in response to said receiving; the respective one of the plurality of server-side processing components that is mapped to the electronic form that is associated with the first page generating a second page in a high order presentation language; and the respective one of the plurality of server-side processing components that is mapped to the electronic form that is associated with the first page providing the second page to the client computer for display; wherein said generating the second page comprises; calling a helper class method corresponding to the action to be implemented on the electronic form; calling a corresponding render method; in response to said calling a helper class method, said helper class method performing the action on the electronic form; and in response to said calling a corresponding render method and dependent on the performance, by the helper class method, of the action on the electronic form, said render method performing; populating a name value pair with corresponding data; applying said name value pair populated with said data to a vehicle for displaying dynamic content on pages in a high order presentation language; and drafting said second page; wherein the method further comprises; the server computer receiving input indicating a second user action that represents a second action to be implemented on another electronic form of the application currently executing on at least the server computer; and in response to receiving the input indicating the second user action, a different one of the plurality of server-side processing components that is mapped to the other electronic form generating another page in a high order presentation language, wherein said generating another page comprises calling at least one of the same said helper class method and the same said render method that was called for said generating the second page such that the respective one and the different one of the plurality of server-side processing components both call the same at least one of the said helper class method and said render method for generating the second page and the other page, respectively. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A non-transitory, computer-readable storage medium storing program instructions computer-executable to implement a plurality of server-side processing components each configured to:
-
receive input indicating a user action that is performed on a first page in a high order presentation language, wherein the first page is associated with an electronic form of a currently executing application and comprises an encoding of said electronic form, wherein said electronic form is one of a plurality of electronic forms associated with respective pages, wherein each of the plurality of electronic forms is mapped to a respective one of the plurality of server-side processing components, wherein the plurality of server-side processing components process user input received for the respective electronic form, each wherein at least two of the electronic forms are mapped to different respective ones of the plurality of server-side processing components, such that user input for different electronic forms is processed by different respective ones of the server-side processing components, and wherein the user action represents an action to be implemented on the electronic form of the currently executing application that is associated with the first page; wherein in response to said receiving, the respective one of the plurality of server-side processing components that is mapped to the electronic form that is associated with the first page is configured to; generate a second page in a high order presentation language; and provide the second page to a client for display; wherein said generating the second page comprises; calling a helper class method corresponding to the action to be implemented on the electronic form; and calling a corresponding render method; wherein said program instructions are further executable to implement said helper class method, and wherein said helper class method is configured to, in response to said calling the helper class method, perform the action on the electronic form; and wherein said program instructions are further executable to implement said render method, and wherein said render class method is configured to perform, dependent on the performance, by the helper class method, of the action on the electronic form; populating a name value pair with corresponding data; applying said name value pair populated with said data to a vehicle for displaying dynamic content on pages in a high order presentation language; and drafting said second page; wherein a different one of the plurality of server-side processing components that is mapped to another electronic form of a currently executing application is configured to; receive input indicating a second user action that represents a second action to be implemented on the other electronic form; and in response to said receive input indicating a second user action, generate another page in a high order presentation language, wherein said generating another page comprises calling at least one of the same said helper class method and the same said render method that was called for said generating the second page such that the respective one and the different one of the plurality of server-side processing components both call the same at least one of the said helper class method and said render method for generating the second page and the other page, respectively. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A system, comprising:
-
a server computer on which a plurality of server-side processing components are deployed; wherein the server computer is configured to; provide a first page in a high order presentation language to a client computer for display, wherein said first page is associated with an electronic form of an application currently executing on at least the server computer and comprises an encoding of said electronic form, wherein said electronic form is one of a plurality of electronic forms associated with respective pages, wherein each of the plurality of electronic forms is mapped to a respective one of the plurality of server-side processing components for processing user input received for the respective electronic form, wherein each of the server-side processing components is deployed upon the server computer, and wherein at least two of the electronic forms are mapped to different ones of the plurality of server-side processing components, such that user input for different electronic forms is processed by different respective ones of the server-side processing components; and receive input indicating a user action that is performed on the first page and that represents an action to be implemented on the electronic form of the currently executing application that is associated with the first page; wherein in response to said receiving, the respective one of the plurality of server-side processing components that is mapped to the electronic form that is associated with the first page is configured to implement; generating a second page in a high order presentation language; and providing the second page to the client computer for display; wherein said generating the second page comprises; calling a helper class method corresponding to the action to be implemented on the electronic form; calling a corresponding render method; in response to said calling a corresponding render method, said helper class method performing the action on the electronic form; and in response to said calling a corresponding render method and dependent on the performance, by the helper class method, of the action on the electronic form, said render method performing; populating a name value pair with corresponding data; applying said name value pair populated with said data to a vehicle for displaying dynamic content on pages in a high order presentation language; and drafting said second page; wherein the server computer is further configured to receive input indicating a second user action that represents a second action to be implemented on another electronic form of the application currently executing on at least the server computer; and wherein in response to receiving input indicating the second user action, a different one of the plurality of server-side processing components that is mapped to the other electronic form is configured to generate another page in a high order presentation language, wherein said generating another page comprises calling at least one of the same said helper class method and the same said render method that was called for said generating the second page such that the respective one and the different one of the plurality of server-side processing components both call the same at least one of the said helper class method and said render method for generating the second page and the other page, respectively. - View Dependent Claims (16, 17, 18, 19, 20, 21, 22)
-
Specification