![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Struts 2.3.4.1
qinshi8
这个作者很懒,什么都没留下…
展开
-
struts.xml的路径
web.xml中welcome-file的类型不能为action,但是可以是servlet,也可以在页面中添加 <meta http-equiv="refresh" content="0; url=index.action"> 跳转。 struts.xml的默认位置在src下面,如果想改变struts.xml的位置的话,比如放在WEB-INF/config文件夹下面,则...原创 2013-03-25 15:39:39 · 222 阅读 · 0 评论 -
配置struts2时遇到的一点问题
struts-2.3.4.1最少需要的包如附件: 报了很多莫名其妙的错,就是因为我把所有的包都加进去了 建议先导入必须的这八个jar包,然后需要什么导入什么。 另外Action里面最好把封装的Form类的get方法也写进去,我只写了set没有get方法, 结果一直是只能得到form里面最后一个的值,前面的都为null。 ...原创 2013-02-03 09:57:23 · 115 阅读 · 0 评论