struts 2
文章平均质量分 72
nttwbd
这个作者很懒,什么都没留下…
展开
-
搭建 struts2 helloWord
第一步 导包:五个必须要导入的包 1 Struts2-core(核心类) 2 xwork (Struts2 基于此构建) 3 ongl (对象图导航语言包) 4 freemarker (表现层使用 UI 标签模版) 5 commons-logging xwork原创 2009-07-16 18:02:00 · 864 阅读 · 1 评论 -
Struts2 Package
Struts2 Package ConfigurationThe package element has one required attribute, name, which acts as the key for later reference to the package. The extends attribute is optional and allows one package原创 2009-07-18 10:17:00 · 3294 阅读 · 2 评论 -
Struts1和Struts2的区别和对比
• Struts1要求Action类继承一个抽象基类。Struts1的一个普遍问题是使用抽象类编程而不是接口。 • Struts 2 Action类可以实现一个Action接口,也可实现其他接口,使可选和定制的服务成为可能。Struts2提供一个ActionSupport基类去 实现 常用的接口。Action接口不是必须的,任何有execute标识的POJO对象都可以用作Struts2的Actio转载 2009-07-16 21:38:00 · 307 阅读 · 0 评论 -
Struts2 通过配置struts.xml中的actio标签name属性值来与请求路径映射
Struts2 通过配置struts.xml中的actio标签name属性值来与请求路径映射默认情况下Struts2 通过配置struts.xml中的package标签 namespace属性值来与请求路径映射的。通过以下几步就可以修改这个默认设定1 在dafult.properties (struts-core.jar)中找到[struts.enable.SlashesInA原创 2009-07-18 21:58:00 · 1307 阅读 · 0 评论 -
struts2 常量设置
通常struts2加载struts2常量的顺序如下: struts-default.xml struts-plugin.xml struts.xml (tomcat服务器启动时,也是顺序读取struts-default.xml ,struts-plugin.xml ,struts.xml ) struts.properties web.xml 在不同的配置文件里存在相原创 2009-07-17 21:09:00 · 604 阅读 · 0 评论