Java框架(Spring、Struts、Hiberbate)简介
无需注册登录,支付后按照提示操作即可获取该资料.
JAVA框架(Spring、Struts、Hiberbate)简介(中文2000字,英文1400字)
作者:sun(Spring、Struts、Hiberbate)
.参考文献:《Struts使用开发指南---基于MVC+MyEclipse的JAVA Web应用开发》
Struts是一个基于Sun J2EE平台的MVC框架,主要是采用Servlet和JSP技术来实现的。
Struts框架可分为以下四个主要部分,其中三个就和MVC模式紧密相关:
1、模型(Model),本质上来说在Struts中Model是一个Action类(这个会在后面详细讨论),开发者通过其实现商业逻辑,同时用户请求通过控制器(Controller)向Action的转发过程是基于由struts-config.xml文件描述的配置信息的。
2、视图(View),View是由与控制器Servlet配合工作的一整套JSP定制标签库构成,利用她们我们可以快速建立应用系统的界面。
3、控制器(Controller),本质上是一个Servlet,将客户端请求转发到相应的Action类。
4、一堆用来做XML文件解析的工具包,Struts是用XML来描述如何自动产生一些JAVABean的属性的,此外Struts还利用XML来描述在国际化应用中的用户提示信息的(这样一来就实现了应用系统的多语言支持)。
Struts is a MVC framework based on the Sun J2EE platform, mainly using Servlet and JSP technology to realize.
The Struts framework can be divided into the following four main parts, three of which is closely related to MVC mode:
1, model (Model), essentially in the Struts Model is a Action class (this will be discussed in more detail in the back), developers through the implementation of business logic, while the user request through the controller (Controller) to the forwarding process of Action is based on the configuration information is described by the struts-config.xml file.
2, the view (View), View is composed of a set of JSP custom tag library working in conjunction with the Servlet controller, using them we can quickly establish the application system interface.
3, the controller (Controller), is essentially a Servlet, client requests are forwarded to the appropriate Action class.
4, a pile of used to do the XML file parsing toolkit, Struts XML is used to describe how to produce some of the attributes of JAVABean automatic, Struts also uses XML to describe in the international application user prompt information (thus implementing multi-language support application system support).