代码改变世界

随笔分类 -  翻译

Comparing Struts 1 and 2

2012-05-28 17:39 by myjava2, 143 阅读, 收藏,
摘要: Comparing Struts 1 and 2Edit PageBrowse SpaceAdd PageAdd NewsFeatureStruts 1Struts 2Action classesStruts 1 requires Action classes to extend an abstract base class. Acommon(常规,普遍) problem in Struts 1 isprogramming(设计) to abstract classes instead of interfaces.An Struts 2 Actionmayimplement anActioni 阅读全文

Struts2 Web.XML

2012-05-18 22:25 by myjava2, 196 阅读, 收藏,
摘要: web.xmlEdit PageBrowse SpaceAdd PageAdd NewsTheweb.xmlweb application descriptor(描述) file represents the core of the Java web application, so it is appropriate that it is also part of the core of the Struts framework. In theweb.xmlfile, Struts defines its FilterDispatcher(控制器), the Servlet Filter cl 阅读全文

Configuration、SessionFactory、Session

2012-04-17 15:49 by myjava2, 164 阅读, 收藏,
摘要: org.hibernate.cfgClass ConfigurationAn instance ofConfigurationallows(允许) the application to specify properties and mapping documents to be used when creating aSessionFactory. Usually an application will create a singleConfiguration, build a single instance ofSessionFactoryand then instantiateSessio 阅读全文