servlet容器的职责
总的来说,一个全功能的servlet容器会为servlet的每个HTTP请求做下面的一些工作:
1,当第一次调用servlet的时候,加载该servlet类并调用servlet的init方法,只有一次,
2,对于每次请求,都要new出一个request请求和response相应实例,
3,调用servlet的service方法,同时传递ServletRequest...
分类:
其他好文 时间:
2015-03-12 17:16:17
阅读次数:
161
#!/usr/bin/envpython
#-*-coding:UTF-8-*-
"""
@Item:v1.0
@Author:ShengWangQiang
@Group:System
@Date:2015-01-28
@E-mail:swq.499809608@hotmail.com
@Funtion:
"""
importsys,time,os,traceback,commands,
importparamiko,
classRemote(object):
def__init__(self):
ve..
分类:
编程语言 时间:
2015-03-12 15:28:23
阅读次数:
164
1、安装Apache2 yum install httpd2、启动 方法一:service httpd start 方法二:/etc/init.d/httpd start//浏览http://ip,应该看到Apache2的测试页3、设置开机启动 方法一:chkconfig --levels 235 ...
分类:
Web程序 时间:
2015-03-12 14:38:04
阅读次数:
140
今天写了个方法,结果老提示错误cannot assign to self outside of a method in the init family,想了半天都不知道怎么破
-(id)initwithUrlStr:(NSString *)urlStr setBlock:(void (^)(HttpDownLoadBlock
*, BOOL))a
{
if (sel...
分类:
其他好文 时间:
2015-03-12 13:18:37
阅读次数:
104
1 NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];2 paragraphStyle.headIndent = 10.0;3 paragraphStyle.fir...
分类:
其他好文 时间:
2015-03-12 13:13:15
阅读次数:
166
首先需要子类化一个navigationController的子类,在init方法中对定制nav的一些基本需求进行设置 1 - (instancetype)initWithRootViewController:(UIViewController *)rootViewController 2 { 3 ....
分类:
移动开发 时间:
2015-03-12 13:04:31
阅读次数:
5983
新建一个类,并实现IHttpModule 接口
实现接口,在Init方法中处理请求,在请求方法中实现具体的Url重写操作 补充Url重写方法,通过 Request的Path对象获取请求文件路径,并根据请求文件路径,构建实际文件路径
HttpApplication app = sender as Ht...
分类:
Web程序 时间:
2015-03-12 13:03:35
阅读次数:
136
host =$host; } if($name==''){ $this->name =$name; } if($pwd ==''){ $this->pwd =$pwd; } if($db == ''){ $this->db =$db; } $this->init_c...
分类:
其他好文 时间:
2015-03-12 12:53:54
阅读次数:
95
1.复习一下dir()和__dict__. >>> class C(object): pass >>> c=C() >>> dir(C) [‘__class__‘, ‘__delattr__‘, ‘__dict__‘, ‘__doc__‘, ‘__format__‘, ‘__getattribute__‘, ‘__hash__‘, ‘__init__‘, ‘__module_...
分类:
其他好文 时间:
2015-03-12 11:45:19
阅读次数:
169
// 初始化 UICollectionViewFlowLayout *flowLayout= [[UICollectionViewFlowLayout alloc]init]; UICollectionView *myCollectionView = [[UICollectionVie...
分类:
其他好文 时间:
2015-03-12 11:01:35
阅读次数:
198