Font Size: a A A

The Research Of Web Application Framework Based On MVC Pattern And J2EE

Posted on:2007-04-02Degree:MasterType:Thesis
Country:ChinaCandidate:Y Q MaFull Text:PDF
GTID:2178360185966853Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
At present, J2EE (Java 2 Enterprise Edition) that Sun Microsystems, Inc. put forward has already become the standard of enterprise development of Web application gradually. The SERVLET/JSP technology, which is one important part of J2EE, is widely used in numerous Websites too, However, if only JSP technology is used in Web application development, the business logic, java code and dynamic html would be mixed together, which results in low reusable degree of the program, makes maintenance tedious and difficult, and brings weak adaptability to changes. Therefore, a framework named Struts is introduced joined the MVC design pattern.Struts framework is an implementation of the MVC pattern based on J2EE.It separates interface and business logic, be in favor of the division between page designer and programmer and aided in code reusability and flexibility for components development. However, it exhibits several drawbacks: a developer can embed application logic into the JSP, which leads to applications that are hard to understand and maintain; The developer must learn new APIs ~ the Struts tag libraries and an understanding of the Struts tag libraries, can take a long time; The JSP syntax is not XML compliant and therefore fails to guarantee that resulting XML or HTML documents will be well formed. In the thesis, a new framework named Struts2X is presented to overcome these drawbacks, which enhances Struts by replacing JSP (JavaServer Pages) with XML and XSLT (Extensible Stylesheet Language Transformations).J2EE and the MVC pattern in Web application are introduced first. Then Struts framework is described in detail. In view of its drawbacks, a new framework named Struts2X is presented. Finally, a Web application is developed by Struts2X framework, and it proves that Struts2X provides better separate logic and presentation, and satisfies requests from several client sides and improves system extensibility.
Keywords/Search Tags:J2EE, MVC Pattern, Struts, Struts2X
PDF Full Text Request
Related items