![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
struts
liyiye
这个作者很懒,什么都没留下…
展开
-
struts的action跳转大全
开始学习Struts,对于Struts的配置文件好多人都搞不大清楚,下面是我学习过程中的心得,写出来供大家参考,交流。[1] 完整的action<action path="/aFullAction" type="somePackage.someActionClass"> name="someForm" input="someJSP.jsp" <forward name="s原创 2008-09-22 17:24:05 · 72 阅读 · 0 评论 -
对于struts2的验证机制的(FieldError)一些理解
以前一直是用struts1开发程序,近日看了一下struts2。在这里发表一下自己的一下看法,欢迎大家探讨一下。 struts2 采用配置文件的形式进行验证的,action的代码如下:public class LoginAction extends com.opensymphony.xwork2.ActionSupport{ private String userName;...2008-12-09 15:32:02 · 147 阅读 · 0 评论 -
使用Struts2下载带中文文件名的文件
在需要下载中文时可以使用StreamResult来完成,以下是摘自该类的JavaDoc的对参数的说明: contentType - the stream mime-type as sent to the web browser(default = text/plain). contentLength - the stream length in bytes (the ...原创 2009-08-19 10:56:25 · 100 阅读 · 0 评论