Guava 是一个 Google 的基于java1.6的类库集合的扩展项目,包括 collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O, 等等. 这些高质量的 API 可以...
分类:
其他好文 时间:
2014-07-21 10:14:58
阅读次数:
180
1. urlopen可以给一个Request Object返回一个response object,read()读取相应对象的内容,这时候的print(the_page)可以输出网页的html内容1 import urllib22 3 req = urllib2.Request('http://www...
分类:
编程语言 时间:
2014-07-20 09:03:38
阅读次数:
301
In one embodiment, a network management system (NMS) determines an intent to initialize a request-response exchange with a plurality of clients in a l...
分类:
Web程序 时间:
2014-07-20 08:31:43
阅读次数:
382
1.获取所有的提交到服务器的文件集合HttpFileCollection fileColl= Request.Files;2.取得一个文件(这里是一张照片) HttpPostedFile pic = fileColl[0];3.判断文件是否为空 1.获取服务器存放图片的物理路径(Server...
分类:
其他好文 时间:
2014-07-19 19:04:03
阅读次数:
188
解决 ff cookie 丢失问题Global.asax 中: protected void Application_BeginRequest(object sender, EventArgs e) { var Request = HttpContext....
分类:
Web程序 时间:
2014-07-19 16:33:56
阅读次数:
279
Html代码选择角色说明:其中#request.roleuserList对应后台放入request作用域的roleuserList这个list;listKey="roleId"这里的roleId对应后台roleuserList中role这个bean的属性roleId,listKey也是将要传入后台的...
分类:
其他好文 时间:
2014-07-19 16:23:19
阅读次数:
221
HttpWebRequest request = WebRequest.Create("http://www.1314721.com.cn/") as HttpWebRequest; HttpWebResponse response = request.GetResponse() as HttpW....
分类:
Web程序 时间:
2014-07-19 14:25:36
阅读次数:
219
自动安装:
1、通过快捷键 ctrl+` 或者 View > Show Console 菜单打开控制台
2、粘贴对应版本的代码后回车安装
适用于 Sublime Text 3:
import urllib.request,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_p...
分类:
其他好文 时间:
2014-07-18 18:08:25
阅读次数:
188
写入:private void insertFile(HttpServletRequest request, HttpServletResponse response) throws IOException { String path_member = reque...
分类:
数据库 时间:
2014-07-18 17:34:09
阅读次数:
316
记得刚接触asp.net的时候,就被几个概念搞的头痛不已,比如Request,Response,Session和Cookie。然后还各种在搜索引擎搜,各种问同事的,但是结果就是自己还是很懵的节奏。那cookie到底是毛啊?下面是我最不喜欢的一种解释方式(官方定义吧应该叫,我这种智商根本读不懂嘛~)C..
分类:
Web程序 时间:
2014-07-18 13:13:19
阅读次数:
290