struts2.0
m_0307
这个作者很懒,什么都没留下…
展开
-
struts和hibernate配置
1.配置web.xml. 在web.xml中添加struts2的核心过滤器: filter> filter-name>struts2filter-name> filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterfilter-class>转载 2017-05-10 10:29:13 · 249 阅读 · 0 评论 -
struts2的method="{1}"
这里的{1}表示接收前面action里通过通配符传来的值,例如你配置的是 ,然后调用***/editCrud.action,则method里获得的值是edit,将会调用这个action里面的 edit方法原创 2017-05-19 11:59:13 · 334 阅读 · 0 评论 -
struts2里的struts.xml中 当result的type="stream"
class="cn.com.***.pki.ra.web.action.CertAction"> WEB-INF/pages/cert/cert_view.jsp WEB-INF/pages/cert/cert_update_request_input.jsp原创 2017-05-19 14:02:52 · 1024 阅读 · 0 评论 -
关于struts2下载文件后再跳传到别的Action的问题
用strust2做了几个页面。流程是这样的。1.先在页面填好内容和验证码(用Captcha做的)提交2.经过处理后去服务器下载文件struts.xml大致如下//填资料页面/index.jsp//处理数据download/${fileName}//下载文件attachment;filename="${fileName}转载 2017-05-19 14:09:26 · 391 阅读 · 0 评论