摘要: http://www.cnblogs.com/guozhe/archive/2012/02/23/2364537.html 详细网上找了一天,大家都说Uploadify唯一的缺点就是不支持中文按钮,杯具之前,我看了下Uploadify的API,才发现了几个参数没被大家提及 的,这正是解决此问题的关键。(以后坚决养成没事就看API的习惯) Uploadify有一个参数是 buttonText 这个无论你怎么改都不支持中文,因为插件在js里用了一个转码方法把这个参数的值转过码了,解码的地方在那个swf文件里,看不到代码,所以这条路不行。 另一个参数,网上很少提到,是 buttonImg( 按钮图片 阅读全文
posted @ 2012-05-23 15:43 lcuzhanglei 阅读(207) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text ml; charset=utf-8& 阅读全文
posted @ 2012-05-23 14:04 lcuzhanglei 阅读(1033) 评论(0) 推荐(0) 编辑
摘要: http://wenku.baidu.com/view/f6c0ba07e87101f69e319580.html 阅读全文
posted @ 2012-05-23 10:48 lcuzhanglei 阅读(92) 评论(0) 推荐(0) 编辑
摘要: java中提供了io类库,可以轻松的用java实现对文件的各种操作。下面就来说一下如何用java来实现这些操作。新建目录<%@pagecontentType="text/html;charset=gb2312"%><%//StringURL=request.getRequestURI();StringfilePath="C:\\测试\\";filePath=filePath.toString();//中文转换java.io.FilemyFilePath=newjava.io.File(filePath);if(!myFilePath.e 阅读全文
posted @ 2012-05-23 10:32 lcuzhanglei 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 从Request对象中可以获取各种路径信息,以下例子:假设请求的页面是index.jsp,项目是WebDemo,则在index.jsp中获取有关request对象的各种路径信息如下String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";String remoteAddress=request.getRemo 阅读全文
posted @ 2012-05-23 10:16 lcuzhanglei 阅读(1165) 评论(0) 推荐(1) 编辑