1、action.classprivate File pictureType; private String pictureTypeContentType; private String pictureTypeFileName;public String editType() throw...
分类:
其他好文 时间:
2014-07-24 17:35:05
阅读次数:
241
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所需要的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(利用)。有Exploit就肯定有漏洞。我们可以引申为利用的方式,通常是以各种代码出现的。可以参见:Debug
Struts2 S2-0...
分类:
Web程序 时间:
2014-07-23 17:10:21
阅读次数:
215
? Struts1要求Action类继承一个抽象基类。Struts1的一个普遍问题是使用抽象类编程而不是接口。? Struts 2 Action类可以实现一个Action接口,也可实现其他接口,使可选和定制的服务成为可能。Struts2提供一个ActionSupport基类去 实现 常用的接口。Ac...
分类:
其他好文 时间:
2014-07-23 15:37:09
阅读次数:
210
struts2中注解redirect时传递参数中文乱码问题解决方法
试过了很多方法 tomcat 编码 、字符串转换编码 、URLEncoder .. 但是都没解决,后来仔细看了 struts2 的redirect ,redirectAction ,
加上 params={"encode","true"} 就不会有乱码了
@Action(v...
分类:
其他好文 时间:
2014-07-23 13:27:36
阅读次数:
193
参考下面代码,在Action中加一个方法: 1 // 导出excel 2 public String excel() throws Exception { 3 StringBuffer excelBuf = new StringBuffer(); 4 excelBuf...
分类:
其他好文 时间:
2014-07-23 12:51:16
阅读次数:
193
参考代码如下:
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
自定义类型转换器必须实现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