![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
struts2
telen_telen
这个作者很懒,什么都没留下…
展开
-
struts2 上传文件 错误记录
struts2 上传文件form中添加 <input type="file" name="file"/> 在action中需要有三个属性 private File file; private String contentType; private String fileName; 分别实现其setter方法,但是contentType和...2011-08-02 15:41:37 · 82 阅读 · 0 评论 -
struts 2 输出json 选择action 属性
原来的action里有一堆属性,添加需要json输出的方法时这样设置 <package name="jsonout" extends="json-default" namespace="/example"> <action name="list" class="fooAction" method="bee">2013-06-08 18:24:57 · 112 阅读 · 0 评论