- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
如何集成Spring和Struts(如何集成弹簧和Struts)
This article wants to illustrate how to integrate Spring and Struts with a simple example.
1.Struts and Spring
Struts represents the implementation of the MVC second class architecture, and the most important components in Struts are ActionServlet, Action, and ActionForm
Subclass, ActionServlet stands for controller, which accepts the request based on the configuration file and forwards the requests to the corresponding ActionForm and Action subclasses.
ActionForm transfers data entered by the user to the Action,
The Action invokes the business layer component to complete the necessary operations and finally submits to the view. ActionServlet uses a configuration file (struts-config.xml) to load the definition of the Action subclass to accept user requests based on the request URL,
Controller finds a action definition to accept the request, and the Struts component processes user requests, checks the configuration file, and completes the action.
Spring is a lightweight container, it makes use of an external XML configuration file very easily bound objects, each object can be listed by the JavaBean attribute a dependent object pointer, by binding the XML configuration file to the rest of the work is more simple. Dependency injection (DI) is a very powerful feature, and Spring supports pluggable transaction managers to provide more options for managing things
It integrates the persistence architecture as well as a unified exception classification, and Spring also provides a simple mechanism for aspect oriented (AOP) programming.
Integration of 2.Struts and Spring
The application of Struts integrated into the Spring framework can use a variety of methods, the Spring is clearly designed to solve practical problems, such as the JEE complexity, poor performance, testing and other; second, the Spring framework includes a AOP that you can use aspect oriented programming; third,
The Spring framework can be very easy to manage and coordinate w
您可能关注的文档
- 墙面彩绘发展(Wall painting development).doc
- 墙面漆与乳胶漆的环保性能对比及选择(Comparison and selection of environmental protection performance of wall paint and latex paint).doc
- 墙面起包,开裂,掉皮等常见问题解决方法(Wall packing, cracking, peeling and other common problems, solutions).doc
- 墙体保温材料(Wall insulation material).doc
- 墙体在建筑空间中的作用(The role of wall in architectural space).doc
- 墙砖和地砖(Wall tiles and floor tiles).doc
- 塞浦路斯以扭曲市场换稳定(Cyprus trades in a distorted Market).doc
- 塞班岛(Saipan).doc
- 嗓音保护与发声训练(Voice protection and vocal training).doc
- 嗓子调养(Recuperate).doc
- 如何计算结构体的大小(How do I calculate the size of a structure).doc
- 如何加快电脑开机速度(How to speed up the computer).doc
- 如何加入一个创业公司(How to join an entrepreneurial company).doc
- 如何加强企业所得税管理(How to strengthen the management of enterprise income tax).doc
- 如何获得外文全文文献(How to get full text in foreign language).doc
- 如何检测视频线好坏(How to detect video line quality).doc
- 如何建立一个网站(我的5年经验谈)(How to build a website (my 5 year experience)).doc
- 如何健康坐月子(How healthy confinement).doc
- 如何鉴别假烟(How to identify counterfeit cigarettes).doc
- 如何建设高绩效的管理团队(1天)(How to build a high performance management team (1 days)).doc
原创力文档


文档评论(0)