发明名称 Pattern using JSP-servlet-helper classes for an order mangement system
摘要 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.
申请公布号 US8990832(B2) 申请公布日期 2015.03.24
申请号 US200110032849 申请日期 2001.10.29
申请人 Oracle America, Inc. 发明人 Viswanath Sridatta;Chiu David
分类号 G06F15/16;G06F13/00;G06Q30/06 主分类号 G06F15/16
代理机构 Meyertons, Hood, Kivlin, Kowert & Goetzel, P.C. 代理人 Kowert Robert C.;Meyertons, Hood, Kivlin, Kowert & Goetzel, P.C.
主权项 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; andthe 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; andin 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; anddrafting 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; andin 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.
地址 Redwood City CA US