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.
展开▼