Comparison and Research of Struts and JSF Based on J2EE

Author
DengMu
Advisor
LiZiLi
School
Southwestern University of Finance and Economics
Major
Applied Computer Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2008
Downloads
87
Citations
7

Request the full text

Abstract

Now,Information Construction home and abroad are entering a period which is based on Web application,and Java language is called the best programming language in developing Web application.Therefore,Java Enterprise Applicaton System based on Java become the biggest part in Computer Web application system.At the beginning,we use servlet and JSP to program Web application,but there was a large quantities of codes in developing many formal tasks.A kinds of frameworks based J2EE appears to simply these tasks.Most of the J2EE Web applications are consist of at least three tiers according to their resposibilies.These are: Presentation tier, Business-Logic tier and Integration tier. Each tier has a sound function, and is not to be mixed with other tiers.A good framework is defined to the problems on only one certain tier, and to solve all.The framework can release the developers from the bottom coding, enable them concentrate on the business logic.Both Struts and JSF are excellent frameworks on presentation tier.Strus is open-sourcing from Apache Organization with the flexibility on the controller part. JavaServer Faces is the first framework in the J2EE world with characteristics of rapid development, which can develop customize user interface in Web application.Both Struts and JSF adopt model-view-contorller pattern, which detach design of Object Oriented and visualized interface.In MVC pattern, view is used to interact with users, model is business-logic and data, and controller is the code responsing the user event and integrating model and view.MVC pattern ensure application soft-coupling,therefore reducing the dependence among the three tiers.Struts uses JSP customized tags and MVC pattern to improve the reuse of codes and the flexibility of controller.Struts becomes the de-facto standard in J2EE for its early publication.JSF provides the wonderful components which are running on server side and responsing to the user event from the clients.Meanwhile,there are some differences between them.First,JSF is based on components which can stimulate an event,but there is one form relating to one very event in Struts.So components-based event in JSF is preciser than the request-based event in Struts, and this is the primary difference between Struts and JSF.Second,Javabean of ActionForm in Struts includes only data related to the pages,while methods are put in the Action class.But in JSF,backing bean both includes the attributes and related behaviours.What’s more,there are some differences in presentation technology,realization and performance.Basing on the introduction of the two frameworks, this thesis compares the infrastructure, system, extension, performance and realization of them.And I point their similarities and differences, and summarize their own advantages and disadvantages.Then when considering their mutual complement,I think I can integrate Struts and JSF together in one J2EE Web application,which can enjoy their advantages and screen their disadvantages.This thesis first proves the feasibility of integrating the two frameworks together on theory,and then demonstrate the performance of integration with a Web application.Finally,there is some own opinions about how to apply the two frameworks into the development of Web application.

Table of contents

The Chinese summary 3-5 ABSTRACT 5-10 0 Introduction 10-14 0.1 Background of 0.2 research status 10-12 0.2.1 Struts framework outlined 11 0.2.2 JSF framework outlines are found; 11-12 0.3 this article major research and innovation 12-14 J2EE, and MVC design pattern 14-27 1.1 J2EE platform introduced 14-18 1.1. Profile 1 J2EE the 14-15 1.1.2 J2EE advantages 15-16 the J2EE architectural level divided 1.1.3 16-18 1.2 MVC pattern in J2EE architecture 18-24 1.2.1 design pattern concept the 18-19 1.2.2 MVC model structure 19-21 1.2.3 MVC mode processes 21-22 1.2.4 MVC mode in the Web system 22-23 1.2.5 MVC mode advantages 23-24 1.2.6 MVC mode drawback nbsp the; 24 1.3 JSP JavaBean and the JSP MODEL2 24-27 the STRUTS framework introduced 27-32 2.1 STRUTS MVC mechanism 27-30 2.2 the STRUTS configuration of 30 2.3 STRUTS controller components 30 2.4 STRUTS model components 30-31 2.5 STRUTS view component 31-32 JSF framework introduced 32-40 3.1 user interface component model 32-33 3.2 JSF page life cycle 33-37 3.2.1 request processing lifecycle scene 34 - 35 3.2.2 JSF standard life cycle 35-37 3.3 JSF programming model 37 3.4 JSF configuration 37-40 4 STRUTS and JSF compare the 40-63 4.1 STRUTS and the the same point of the JSF 40-53 4.1.1 object-oriented application framework 40 - 42 4.1.2 MVC design pattern the 42-44 4.1.3 type conversion 44-45 the 4.1.4 page navigation 45-46 4.1.5 internationalization and localization 46-47 4.1.6 XML-based configuration file the 47-50 the 4.1.7 tag library nbsp data validation; 50-53 4.1.8 53 4.2 STRUTS and JSF difference the background 53-60 4.2.1 JSF 53-54 4.2.2 Struts and JSF status quo 54 4.2.3 the Struts and JSF request based development of component-based development 54-56 <br / > 4.2.4 ActionForm the contrast managed-bean (the backing bean) the 56-58 display technology 4.2.5 Contrast 58-59 4.2.6, JSF, Struts simplify development 59 4.2.7 Struts and JSF performance the more select 59-60 4.2.8 JSF than Struts 60 4.2.9 Struts JSF enhanced exception management 60 4.3 STRUTS advantages and disadvantages 60-61 4.4 JSF's strengths and weaknesses 61-62 <br / > 4.5 Comparison STRUTS and JSF conclusion 62-63 the 5 integrated STRUTS and the JSF the 63-84 5.1 integrated STRUTS and JSF reason 63-64 < br /> 5.2 integrated STRUTS and JSF feasibility analysis 64 5.3 integrated STRUTS and the JSF 64-70 5.3.1 set the correct library 66 - 68 the 5.3.2 migration Struts JSP tags 68-70 5.4 integrated STRUTS and JSF practice 70-82 5.4.1 online book system requirements analysis 70-74 5.4.2 online bookstore system analysis and design 74-78 5.4.3 of the JSF added to the online bookstore application system are found; 78-82 < br /> 5.5 Summary 82-84 6 summarizes the outlook to References 84-85 85-88 Acknowledgements 88 -89 reading during scientific research directory 89

Related dissertations

  1. Managing Information Systems of Hopesun Pharmaceutical Co.Ltd Based on J2EE Platform
    JuLei ·Sichuan University ·2005 ·Master's thesis
  2. Development of embedded network fingerprint attendance system
    GaoHongChao ·Heilongjiang University ·2013 ·Master's thesis
  3. The Design and Implementation of the Online Learning Platform System for Shandong Science and Technology Vocational College
    RenChunYing ·Shandong University ·2013 ·Master's thesis
  4. Design and Implementation of Tourism Management Website System
    QinZuo ·Dalian University of Technology ·2013 ·Master's thesis
  5. Design and Research of MVC and Rule Engine Based Account Receivable Management System
    ZhouWei ·Beijing Forestry University ·2008 ·Master's thesis
  6. Design and Implementation of Rapid Prototyping Remote System Based on MVC Model
    XuChunZuo ·Nanchang University ·2008 ·Master's thesis
  7. Web Application System Research Based on Struts and Hibernate
    FengShiZuo ·Suzhou University ·2007 ·Master's thesis
  8. Development of GUI System Based on MVC and Struts
    LiuBing ·Jilin University ·2008 ·Master's thesis
  9. Design and Implementation in Telecom Qurey-Ticket System Based on Struts Framework
    JiangYu ·Sichuan University ·2006 ·Master's thesis
  10. Struts framework based on MVC pattern Research and Application
    MaGang ·Suzhou University ·2006 ·Master's thesis
  11. The Modeling and Implementation of a Library Management System Based on Web
    GuChunXia ·Suzhou University ·2006 ·Master's thesis
  12. Research and Implementation of J2EE Web Application Based on Struts
    LiuZuo ·Wuhan University ·2004 ·Master's thesis
  13. Build broadband operation support system based on J2EE architecture
    ZhangXiaoYan ·Dongbei University of Finance ·2003 ·Master's thesis
  14. MVC-based software system development framework Universal Web Design and Implementation
  15. Base on Struts the Design and Implementation of the Information System
    XingZhongLong ·Jilin University ·2007 ·Master's thesis
  16. Managerial System for Daily & Monthly Production Reports of Power Plants Based on Web
  17. Research and Implementation of National Infrastructure Program of Chinese Genetic Resources Based on J2EE Platform
    JinHao ·Chinese Geology University (Beijing) ·2006 ·Master's thesis
  18. The Design and Implementation of Large-Scale Web Application System Based on Struts Extended Framework
    SunShenShen ·Northeastern University ·2005 ·Master's thesis
  19. Study on WEB Application Based on J2EE and MVC Pattern
    BaiQingYuan ·Southwest Jiaotong University ·2005 ·Master's thesis
  20. Electronic payment software architecture of the MVC pattern