public String getValue()
{
this.username = "tomcat";
this.password = "123456";
this.nickname = "tomcat nick";
ActionContext.getContext().put("user", "this is a user");
ServletActionContext.getRe...
分类:
其他好文 时间:
2014-10-18 15:35:40
阅读次数:
125
url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。timeout: 要求为Number类型的参数,设置请求超...
分类:
Web程序 时间:
2014-10-17 15:18:03
阅读次数:
289
import net.sf.json.JSONObject;Map classMap = new HashMap (); classMap.put( "OutInTask", OutInTask.class ); OutInTask bean = (OutInTa...
分类:
编程语言 时间:
2014-10-16 19:26:53
阅读次数:
230
一般来说,在用simpleAdapter适配器时,我们所要显示的图片资源都是程序内的本地资源,而且是以资源的ID(Resources ID)形式来表现的。map.put("img",R.drawable.i3);但是有时候我们需要用这个适配器来显示网上的远程图片时,该如何直接显示呢?方法是实现Vie...
分类:
移动开发 时间:
2014-10-16 14:19:42
阅读次数:
173
一、shell脚本示例: ftp cd?/PATH_YOU_WANT_TO_UPLOAD(DOWNLOAD)??
ftp?-niv?<<-?EOF??
open?IP_ADDRESS??
user?USERNAME?PASSWORD??
ascii(or?bin)??
put?*(or?get)??
bye??
EOF lftp...
分类:
系统相关 时间:
2014-10-16 13:42:42
阅读次数:
354
上代码:
Person p1 = new Person("xiaoer",1);
Person p2 = new Person("san",4);
Map maps = new HashMap();
maps.put(p1, "1111");
maps.put(p2, "2222");...
分类:
编程语言 时间:
2014-10-16 03:40:11
阅读次数:
296
RescueTime Limit:2 Seconds Memory Limit:65536 KBAngel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (...
分类:
其他好文 时间:
2014-10-15 19:06:41
阅读次数:
248
//关闭浏览器后,程序能继续在后台跑,这种情况下需要用到ignore_user_abort()函数
ignore_user_abort(true);
set_time_limit(0);
file_put_contents("heh.php","等20秒后,查看界面,还会有信息显示");
sleep(20);
file_put_contents("heh.php","*...
分类:
其他好文 时间:
2014-10-15 18:20:31
阅读次数:
218
今天,给一位新同事配置pip,用get-pip.py安装之后,出现错误:
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: pip==1.5.5
PIP就完全不能用了,后来请教了我们公司的python大牛,解决的办法很简单:
sudo eas...
分类:
编程语言 时间:
2014-10-14 17:14:43
阅读次数:
252
将手机上网日志文件批量导入到Hbase中,操作步骤:
1、将日志文件(请下载附件)上传到HDFS中,利用hadoop的操作命令上传:hadoop fs -put input /
2、创建Hbase表,通过Java操作
Java代码
package com.jiewen.hbase; import java.io.IOException;...
分类:
编程语言 时间:
2014-10-14 16:27:40
阅读次数:
367