![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
struts2
文章平均质量分 74
iteye_1952
这个作者很懒,什么都没留下…
展开
-
struts2
1、在web.xml中EncodingFilter的位置应该在Struts2的FilterDispatcher之前,道理很简单,要先调整字符集,再进入Action。 2、如果使用Urlrewrite,要指定filter-mapping的dispatcher方式,如下 Struts2 /* REQUEST FORWARD 3...原创 2008-11-24 10:11:38 · 96 阅读 · 0 评论 -
Struts2与Struts1之间的差异
Struts2与Struts1在使用上的差异: 1、Action的编写无需继承特殊的基类 2、取消了ActionForm,页面参数被直接设置到Action对象的属性上 3、每个请求都会创建一个Action的对象 4、Action的方法可以不依赖与任何Servlet API Struts2与Struts1在设计上的主要差别在于: 1、Struts2中的请求处理过程由拦截器模式...2008-11-24 10:18:13 · 90 阅读 · 0 评论 -
Struts2与Struts1之间的差异(二)
Apache Struts2是一个优雅的,可扩展的JAVA EE web框架。框架设计的目标贯穿整个开发周期,从开发到发布,包括维护的整个过程 Apache Struts 2即是之前大家所熟知的WebWork 2。在经历了几年的各自发展后,WebWork和Struts社区决定合二为一,也即是Struts 2 Action 类: • Struts1要求Action类继承一个抽象基类。...原创 2008-11-24 10:32:40 · 107 阅读 · 0 评论 -
The project cannot be built until build path error
今天同事在用struts2的时候碰到这样问题 :There is no Action mapped for namespace / and action name 我看了几次配置,拼写都没问题。。后来看到他项目有个错误 :The project cannot be built until build path errors are resolved 提示有unbound clas...2008-11-25 15:18:29 · 219 阅读 · 0 评论