【正文】
model database and LPM database. Thesethree control objects/classes are divided from the raw Controller. Using these controlobjects/classes and databases the following parts of this paper will explain the design ideaand implementation mechanism of this system frame. Firstly we consider the SYSController and the System Description Database. Theyare responsible for receiving the user requests and searching the relevant transaction logicaccording to these requests. The System Description Database can be a XML2 file or aset of XML files. This database describes the different transaction logic related to differentuser requests one by one. The transaction logics mainly include the interactive mode datasources and error handling etc. They are anized in a tree structure. The SYSControllersearches the System Description Database. It bines the user requests and thetransaction logic searched out from the database and then delivers them to Messenger toencapsulate. There are two ways for SYSController to search the database. One uses theDOM Document Object Model object3. When the application system boots this wayrequires the whole database to be loaded into RAM after analyzed by the DOM Parser. Thedatabase resides in the RAM in a DOM tree structure. The other one uses SAX SimpleAPI for XML interface. Both of them have their own advantages and DOM can implement structural search. It can achieve the efficiency in the case oflarger database but it also costs more system resources. The SAX interface is famous forits high efficiency and less system resources requirements. The only disadvantage is that itobtains some information less conveniently than the DOM does. Secondly we consider the Model Center and Model layer pletesthe defined transaction logic by calling the given module. Model Database contains a massof objects and modules. These objects and modules encapsulate the responding methodsrelative to specific transaction logic. When Model Center receives the transaction messagesfrom Messenger it selects suitable objects or modules according to the differenttransaction logic encapsulated in the message. Then it encapsulated the handled data ingiven format and delivers them to the LPM Center. Furthermore each object or moduleonly needs to concern. 。它將執(zhí)行邏輯從表現(xiàn)模式獨(dú)立出來,實(shí)施并行進(jìn)行發(fā)展。由此 JSP Model2的不