的确,学struts不能不知道这些话,呵呵 The core of the Struts framework is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and Extensible Markup Language (XML), as well as various Jakarta Commons packages. Struts encourages application architectures based on the Model 2 approach, a variation of the classic Model-View-Controller (MVC) design paradigm. Struts provides its own Controller component and integrates with other technologies to provide the Model and the View. For the Model, Struts can interact with any standard data access technology, including Enterprise Java Beans, JDBC, and Object Relational Bridge. For the View, Struts works well with JavaServer Pages, including JSTL and JSF, as well as Velocity Templates, XSLT, and other presentation systems. The Struts framework provides the invisible underpinnings every professional web application needs to survive. Struts helps you create an extensible development environment for your application, based on published standards and proven design patterns
使用c#就简单多了。
可是我还是比较喜欢java可以给人有始有宗的感觉
这样不就是JSP模式1的做法啊!我是在JavaBeam(M层)中执行SQL语句,然后将获得的结果
封装在一个聚集中,并返回给Servlet(C层),经过一点加
工后再返回给JSP页面(C层)显示。
了同一个视图,就查询页面稍微复杂一点,因为要为每
一字段构造不同的查询方试,目前正在考虑写一个通用
的查询模板。
C层和M层的工作量反而很大,每一个数据库表都要有一个
Servlet和JavaBean。
当修改时就用 servlet来完成,分了分类,有combox 的用一个,不用combox的用一个,两个就可以了,不过这一部分代码量很大,有很多分支,但都是动态的,通过表名表来实现,对于新增表通吃! 不用以后改代码。
个人认为设计模式不能硬套,要灵活运用,否则人人看完design pattern都是 SA 了,呵呵
不知道说清楚了没有。
批量更新。
http://jakarta.apache.org/struts/
The core of the Struts framework is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and Extensible Markup Language (XML), as well as various Jakarta Commons packages. Struts encourages application architectures based on the Model 2 approach, a variation of the classic Model-View-Controller (MVC) design paradigm. Struts provides its own Controller component and integrates with other technologies to provide the Model and the View. For the Model, Struts can interact with any standard data access technology, including Enterprise Java Beans, JDBC, and Object Relational Bridge. For the View, Struts works well with JavaServer Pages, including JSTL and JSF, as well as Velocity Templates, XSLT, and other presentation systems. The Struts framework provides the invisible underpinnings every professional web application needs to survive. Struts helps you create an extensible development environment for your application, based on published standards and proven design patterns