struts.xml中action中配置 如果是返回到网页则
/AA/XX.jsp如果是返回到action则看namespace然后传参数,如果是同一个namespace则直接写上返回的action的名字从action传action有两种方式一种是
type="chain" 1 2 3 /3.j.....
分类:
其他好文 时间:
2014-06-13 07:45:04
阅读次数:
291
定义一个 package,然后其他package都继承 这个package
struts-global就 有了这个错误处理功能了然后再自己写个类struts.xml 1 2 3 --> 4 5 6 7 ...
分类:
其他好文 时间:
2014-06-12 22:04:47
阅读次数:
215
定义全局结果处理在struts.xml中 1 2 5 6 7 8 --> 9 10 11
12 errorProcessor13 14 1...
分类:
其他好文 时间:
2014-06-12 20:39:12
阅读次数:
291
在使用DMI(动态方法调用)的时候要注意struts.xml配置时要把不然会出现错误完整示例代码struts.xml
/MyPath.jsp ...
分类:
其他好文 时间:
2014-06-12 10:34:24
阅读次数:
233
文件: 备注:
上传到/WEB-INF/upload之后,文件名是乱码解决办法:UploadForm.reset()中添加代码: try {
request.setCharacterEncoding("U...
分类:
Web程序 时间:
2014-06-11 21:58:55
阅读次数:
222
就是在struts-config.xml中添加了这么一段
至于原因。。。不清楚我第一反应是form的action写错了,或者action-mapping配置有问题。。。其实不是,因为我发现以前可以运行的action都不能用了,所以才怀疑到这个上面来
分类:
其他好文 时间:
2014-06-11 09:13:39
阅读次数:
213
struts.xml文件配置:[html]view
plaincopy/jsp/Menu.jspinputStreamtext/cssfilename="main11.css"2048inputStreamapplication/octet-streamfilename="main111222.cs...
分类:
其他好文 时间:
2014-06-11 09:02:56
阅读次数:
278
Struts2整体回顾 之 Action,拦截器,值栈及关联关系...
分类:
其他好文 时间:
2014-06-10 18:21:31
阅读次数:
235
看教材的时候写的DTD是用浏览器访问URL直接404,在eclipse中也没有代码提示,说明这个DTD已经不可用然后去看Struts2的官方JAVADOC,找到http://struts.apache.org/release/2.3.x/xwork-core/apidocs/index.html看了...
分类:
其他好文 时间:
2014-06-08 19:53:51
阅读次数:
212