Struts
共 1 篇文章
Struts1和Struts2的区别
网上看了很多博客写的struts1和struts2的区别,感觉不是很直观通俗。我也来写个版本(因为闲的蛋疼) 一、Struts 2的前世今生。 Struts 2是webwork的升级,而并不是struts1.x的升级。 二、Struts 1的特点 Struts 1以ActionServlet作为核心控制器,由ActionServlet负责拦截用户的所有请求。 Struts 1框架有3个重要组成部分:Action、ActionForm和ActionForward对象。 Struts 1的Action类与Struts2的Action类有一定的类似性,都通过调用execute方法来处理用户请求。 …
2011-03-17 17:44 · Struts · Struts · 编程 · 设计模式 · Servlet · 框架