Research of Core Configuration File for Integrated SSH Framework
SSH is a powerful open source framework of Java Web and a lightweight solution for develop J2EE enterprise class Web application. For the characteristics of SSH framework configuration file content more, configuration complexity and difficult to grasp, study the core configuration files. Based on the study of web.xml file that integrated MVC framework and Web applications, research the configuration techniques and methods such as the core configuration file struts.xml of Struts framework, the core configuration file Context.xml of Spring Framework and the core configuration file hibernate.cfg.xml of Hibernate framework. This study enables developers to clearly understand the way to write the core configuration file of SSH framework, and contribute to team members work in parallel and improves development efficiency. Introduction Framework is the reusable design of entire system or part system, constituted by a set of abstract classes and the way of interaction between instances. The development of large enterprise class Web application system usually requires good software architecture to facilitate the collaborative development expansion and upgrading. With Web technology become the de facto standard of display and manipulate data, enterprise use J2EE platform for integration of original distributed subsystem. As the good openness and scalability, J2EE has become the de facto standard for building Web application. At present the more popular open source framework SSH, is a lightweight solution to develop the Web applications of enterprise class J2EE. For the developers using SSH framework integration, need to master a number of configuration files. And the process of program development is write configuration files constantly. Combined with the practical experience of software development and teaching process for years and through the technical framework to explain the core configuration files, designed to make the readers have a clear understanding about the wording of configuration file and call relations, to improve development efficiency. Web.xml Configuration File Any MVC framework needs to integrate with Web application, which requires the web.xml file. Web.xml is the important configuration file that load information about the servlet to web application, plays function of initialization servlet, filter, etc. Typically, all of the MVC framework needs to load a core controller by Web application, servlet or filter become a good choice as they automatically load with web services using. For Struts2 framework needs to load FilterDispatcher that will load the application Struts 2 frameworks as long as the Web application responsible for loading FilterDispatcher. Instead of an ordinary Servlet, Struts 2 designed core controller to Filter. Therefore, to allow Web application to load FilterDispacher, only configure FilterDispatcher in the web.xml file. web.xml configuration process show in Fig.1. web.xml configuration process is as follows: Step 1: File declaration and header description. Step 2: The initialization of Spring container. If the web application has only one Spring 2nd International Conference on Automation, Mechanical Control and Computational Engineering (AMCCE 2017) Copyright (c) 2017, the Authors. Published by Atlantis Press. This is an open access article under the CC BY NC license (http:/creativecommons.org/licenses/by nc/4.0/ Advances in Engineering Research, volume 118