过滤器,是在java
web中,你传入的request,response提前过滤掉一些信息,或者提前设置一些参数,然后再传入servlet或者struts2的action进行业务逻辑,比如过滤掉非法url(不是login.do的地址请求,如果用户没有登陆都过滤掉),或者在传入servlet或者
s....
分类:
其他好文 时间:
2014-07-22 23:16:33
阅读次数:
440
异常Throwable:分为:错误Error:主要就是内存溢出等错误,只有关掉重启才能解决问题;异常Exception:运行时异常RuntimeException:运行时发生的异常
一般有空指针异常,数组下标越,除数为0,输入类型不匹配的等异常。编译时异常:这个不是写程序时的错误,那是语法错误...
分类:
其他好文 时间:
2014-07-22 23:14:52
阅读次数:
378
//华为编程:筷子,找到第一个单对的筷子#include #define max 37int
main(){ int n,i,j; int a[max]; int flag=0; int error=-1; scanf("%d",&n);
if(n>max) ...
分类:
其他好文 时间:
2014-07-22 23:13:33
阅读次数:
339
mysql_num_rows();返回结果集中行的数目。1 $sql1 = "select *
from movie";2 $result1 = mysql_query($sql1) or die(mysql_error());3 $count =
mysql_num_rows($result1);...
分类:
Web程序 时间:
2014-07-22 23:13:33
阅读次数:
354
今天在学习鸟哥的菜的时候,发现自己linux不可以启用vim命令,错误为:bash: vim:
command not found。 机器环境:VMWare8+RED HAT Enterprise5 解决方法: 发现问题的根源在于没有安装好vim 输入
rpm -qa|grep vim ...
分类:
其他好文 时间:
2014-07-22 23:12:56
阅读次数:
993
//华为编程:筷子,找到第一个单对的筷子#include #define max 37int
main(){ int n,i,j; int a[max]; int flag=0; int error=-1; scanf("%d",&n);
if(n>max) { printf("...
分类:
其他好文 时间:
2014-07-22 23:12:15
阅读次数:
325
引入:#include#includevoidfun(char**q){exit;}voidmain(){char**p,a[6][8];p=a;fun(a);}编译不能通过!ERROR:不能将”char(*)[8]”类型的值分配到”char**”类型的实体。ERROR:”char(*)[8]”类型...
分类:
其他好文 时间:
2014-07-22 23:11:34
阅读次数:
313
1.logger.debug("Debug ...")或logger.info("Info
...")或logger.warn("Warn ...")或logger.error("Error ...")
都只输出对应的信息,即logger.debug只输出debug的信息,info只输出info的信...
分类:
其他好文 时间:
2014-04-30 20:41:18
阅读次数:
704
在iOS7中,内购只能在真机上才会调用-
(void)productsRequest:(SKProductsRequest *)request
didReceiveResponse:(SKProductsResponse *)response协议方法若是用模拟器,它回调用-
(void)reques...
分类:
移动开发 时间:
2014-04-29 11:12:46
阅读次数:
1565
1、***Cmd上面的@APICommand里的responseObject关联对于的Response;2、在tomcatconf/command.properties.in添加新API的权限;3、为得到Cmd,都需要实现PluggableService接口的getCommands()方法,核心Cm...