Struts2
文章平均质量分 76
fatfatefat
这个作者很懒,什么都没留下…
展开
-
Struts2改变struts.xml 默认路径
init-param>param-name>configparam-name>param-value>struts-default.xml,struts-plugin.xml,../STRUTS-XML/struts.xml param-value>init-param>第一种方式,一定要在value中增加default和plugin不然可能会出错。。。/STRUTS-XM转载 2012-01-31 17:09:17 · 709 阅读 · 0 评论 -
struts.properties
struts.configuration.files A list of configuration files automatically loaded by Struts struts自动加载的一个配置文件列表struts.configuration.xml.reload Whether to reload the XM转载 2012-01-30 15:15:55 · 234 阅读 · 0 评论 -
redirect、redirect-action、chain三者的区别!
action的默认结果类型是dispatcher,而action之间发送请求是不能直接用该结果类型的。一般来说,可选的结果有redirect、redirect-action、chain。前两种都是属于页面跳转,也就是说,发送请求以后,地址栏的地址会刷新为被请求的action的地址,而chain则不会更新地址。redirect-action:“这个Result使用ActionMapperFact转载 2012-02-01 17:30:35 · 512 阅读 · 0 评论 -
struts2中常用Result类型的用法
一、dispatcher (1)为缺省的result类型,一般情况下我们在struts.xml会这么写: /main.jsp 以上写法使用了两个默认,其完整的写法为: # # /maini.jsp # 第一个默认:type="dispatcher";第二个默认:设置的为loc转载 2012-02-01 17:34:04 · 314 阅读 · 0 评论 -
Struts2 一个form组成的action内包含多个请求的处理方式。通配符形式。
example.xml<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <action name="Login_*" method=转载 2012-02-03 10:12:06 · 464 阅读 · 0 评论