problem:
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?
An obstacle and empty space is marked as 1 and 0 resp...
分类:
其他好文 时间:
2015-04-02 15:05:20
阅读次数:
127
文件下载不需要第三包就是靠文件流、字节输入输出流实现。 ">下载 download.jsp上述代码中调用了out.clear()和pageContext.pushBody()方法,是因为在JSP页面中内置有out,再使用resp...
分类:
编程语言 时间:
2015-03-17 23:11:22
阅读次数:
145
题目链接:Unique Paths II
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?
An obstacle and empty space is marked as 1 and 0 resp...
分类:
其他好文 时间:
2015-03-15 23:43:50
阅读次数:
310
create or replace procedure MAS_ADMIN.receive_SendForm is
url VARCHAR2(1000);
REQ UTL_HTTP.REQ;
RESP UTL_HTTP.RESP;
res VARCHAR2(1000);
begin
--处理装箱后15天未接收的发货单
url := 'http://xxx.xxx.x...
分类:
Web程序 时间:
2015-03-12 11:30:09
阅读次数:
181
利用3到4天的时间,把servlet中的request和response对象视频看了一遍。看完之后,自己总结出来了一些知识点。学习一个对象的三部曲:首先查看API文档,了解以及掌握对象的一些常用的方法用法;其次就是解决一些中文乱码之类的问题;最后就是该对象的应用了。好了,先来说说resp..
分类:
其他好文 时间:
2015-03-12 01:07:02
阅读次数:
128
post请求:?
?request.post(‘/api/pet‘)
???.end(function(resp,err){
?????if?(resp.body.status===200)?{
???????alert(‘yay?got?‘?+?JSON.stringify(res.body));
?????}?else?{...
分类:
Web程序 时间:
2015-03-11 17:32:58
阅读次数:
225
Servlet的方法剖析: 1.service()方法里面做了什么? 2.doGet()与doPost()做了什么?应该怎么写? 回答 1.service()方法里面做了什么? 如果你的service方法中没有写super.service(req, resp); 那么后果是doget()和dopos...
分类:
其他好文 时间:
2015-03-10 00:08:03
阅读次数:
217
我们在做文件上传或者下载,或者过滤等操作时,可能要用到页面的输出流.例如在action中使用: response.reset(); response.setContentType(”application/vnd.ms-excel”); OutputStream os = resp...
分类:
编程语言 时间:
2015-03-04 12:34:10
阅读次数:
152
#coding=gbk import osimport httplib2import socket def GetWebStatus(host): try: h =httplib2.Http() resp, content = h.requ...
分类:
Web程序 时间:
2015-02-25 17:00:33
阅读次数:
116
----请求重定向:客户端行为,response.sendRedirect(); 从本质上讲等同于两次请求,前一次的请求对象不会保存,地址栏的URL地址会改变。----请求转发:服务器行为,request.getRequestDispatcher().forward(req,resp); 其本质.....
分类:
其他好文 时间:
2015-02-23 22:21:10
阅读次数:
140