码迷,mamicode.com
首页 >  
搜索关键字:struts2 文件批量下载    ( 6753个结果
struts2 File标签上传文件
1、action.classprivate File pictureType; private String pictureTypeContentType; private String pictureTypeFileName;public String editType() throw...
分类:其他好文   时间:2014-07-24 17:35:05    阅读次数:241
struts2 全局拦截器,显示请求方法和参数
struts2 请求url和参数信息log...
分类:其他好文   时间:2014-07-24 10:27:10    阅读次数:168
Java EE实用开发指南基于Weblogic+EJB3+Struts2+Hibernate+Spring 目录
http://www.cnblogs.com/lauleoi/p/3864254.htmlhttp://www.cnblogs.com/lauleoi/p/3864265.htmlhttp://www.cnblogs.com/lauleoi/p/3864267.htmlhttp://www.cnbl...
分类:编程语言   时间:2014-07-24 09:47:03    阅读次数:302
整合struts2+spring+hibernate
?? 一、准备struts2+spring+hibernate所需要的jar包:        新建web项目并将jar包引入到工程项目中。 二、搭建struts2环境        a.在web项目的web.xml中加入struts2的过滤器,以过滤用户的所有请求,该过滤器将请求交给对应的Action处理 。     Struts2 ...
分类:编程语言   时间:2014-07-23 20:55:25    阅读次数:281
exp、Exploit、Exploit Pack、exp-gui、Payload、MetaSploit都是啥?
对于走在安全路上的小菜来说,这几个exp、Exploit、Exploit Pack、exp-gui、Payload、MetaSploit名词着实把人转的不轻,下面给大家解释下: Exp,就是Exploit,漏洞利用的意思,注意,有漏洞不一定就有Exploit(利用)。有Exploit就肯定有漏洞。我们可以引申为利用的方式,通常是以各种代码出现的。可以参见:Debug Struts2 S2-0...
分类:Web程序   时间:2014-07-23 17:10:21    阅读次数:215
struts1与struts2的区别d
? Struts1要求Action类继承一个抽象基类。Struts1的一个普遍问题是使用抽象类编程而不是接口。? Struts 2 Action类可以实现一个Action接口,也可实现其他接口,使可选和定制的服务成为可能。Struts2提供一个ActionSupport基类去 实现 常用的接口。Ac...
分类:其他好文   时间:2014-07-23 15:37:09    阅读次数:210
struts2中注解redirect时传递参数中文乱码问题解决方法
struts2中注解redirect时传递参数中文乱码问题解决方法 试过了很多方法  tomcat 编码  、字符串转换编码 、URLEncoder  .. 但是都没解决,后来仔细看了   struts2 的redirect ,redirectAction ,    加上 params={"encode","true"} 就不会有乱码了        @Action(v...
分类:其他好文   时间:2014-07-23 13:27:36    阅读次数:193
struts2: 通过流输出实现exce导出l
参考下面代码,在Action中加一个方法: 1 // 导出excel 2 public String excel() throws Exception { 3 StringBuffer excelBuf = new StringBuffer(); 4 excelBuf...
分类:其他好文   时间:2014-07-23 12:51:16    阅读次数:193
怎样获得(读取)web.xml配置文件的参数
参考代码如下: com.atguigu.struts2.app.converters.DateConverter.java public DateFormat getDateFormat(){         if(dateFormat == null){             //获取当前 WEB 应用的初始化参数 pattern(该参数在WEB-I...
分类:Web程序   时间:2014-07-22 23:46:07    阅读次数:278
从源代码剖析Struts2中用户自定义配置转换器的两种方式——基于字段的配置转换器和基于类型的配置转换器(解决了实际系统中,因没有区分这两种工作方式的生命周期而引起的异常错误问题)
自定义类型转换器必须实现ongl.TypeConverter接口或对这个接口的某种具体实现做扩展 >com.opensymphony.xwork2.conversion.TypeConverter  à com.opensymphony.xwork2.conversion.impl.DefaultTypeConverter  à org.apache.struts2.util.StrutsT...
分类:其他好文   时间:2014-07-22 23:45:27    阅读次数:378
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!