tableview 滑动导致 NSTimer和delegate 回调停止 解决办法// request回调NSURLRequest*request=...NSURLConnection*connection=[[NSURLConnectionalloc] ...
分类:
其他好文 时间:
2014-06-22 23:51:14
阅读次数:
233
ServletContext读取资源文件内容的方式有两种:
方法1.
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
InputStream in = this.getServletContext().g...
分类:
其他好文 时间:
2014-06-22 18:22:08
阅读次数:
208
在JSP页面中,经常使用javascript,但是要出javascript获取存储在request,session, application中的值,如下是获取request中的值:
假设后台中有:
request.setAttribute("value", "123");
在前台的javascript中有如下获取方式:
1 : var val = "${value}";
...
分类:
编程语言 时间:
2014-06-22 18:14:51
阅读次数:
143
新手初学web 文件上传做完了 进度做了 没有进度条只有文字 不太好看 需要做个进度条 没有美工 网上很多的 进度条 需要图片 还有各种框架 看着好麻烦 只好自己弄一个 还挺简单的 没想象的那么复杂 分享一下
jsp页面
图片
js
src="${pageContext.request.contex...
分类:
其他好文 时间:
2014-06-22 18:04:43
阅读次数:
179
1.
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
print3(response);
}
private void print(HttpServletResponse response) thr...
分类:
其他好文 时间:
2014-06-22 17:16:43
阅读次数:
175
要实现的效果:
1、父节点选中,则下面的子节点全选中
2、父节点不选中,则下面的子节点全不选中
3、子节点只要选中了一个,则父节点选中
4、子节点全不选中,则父亲节点不选中
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getSer...
分类:
Web程序 时间:
2014-06-22 14:59:13
阅读次数:
311
nginx作为web服务器,wordpress上传主题报错 413 Request Entity Too Large
解决:
vim /usr/local/nginx/conf/nginx.conf ’编辑nginx配置文件
client_max_body_size 20m; ‘在http段落里添加这一句后保存退出
/usr/local/nginx/sbin/nginx -s reload...
分类:
其他好文 时间:
2014-06-22 14:38:34
阅读次数:
203
singleton
prototype
request
session
global session
后三种只适用于容器为webaware applicationContext 例如XmlWebApplicationContext
当 后三种范围bean 被依赖时候,需要添加 cglib代理
xmlns:xsi="http://www.w...
分类:
编程语言 时间:
2014-06-22 00:24:01
阅读次数:
278
One of the most important use-case in any cloud is provisioning a VM . In this article we shall do a walk through about an instance(VM) being provisio...
分类:
其他好文 时间:
2014-06-21 16:59:43
阅读次数:
376
In May 2011, I read a request for installation Openvswitch on Qemu image. I started to play with Openvswitch and finally became fan of this project. I...
分类:
其他好文 时间:
2014-06-21 14:42:43
阅读次数:
400