参考:http://www.cnblogs.com/S-E-P/archive/2012/01/18/2325253.html这篇文章说的关键就是“除了导入Struts2和Spring的核心库之外,还要导入commons-logging和struts2-spring-plugin包,否则启动会出异常...
分类:
编程语言 时间:
2014-06-19 06:13:19
阅读次数:
277
举个例子,我今天在做spring和struts2整合的例子新建项目blk1、配置好web.xml,struts.xml,applicationContext.xml,写好jsp页面2、把struts2、spring整合需要的jar包(struts核心jar包,spring核心jar包以及struts...
分类:
Web程序 时间:
2014-06-19 00:26:04
阅读次数:
287
"; // mysql_select_db("_blog"); $query_test="select *from _blog_"; $result_q=mysql_query($query_test); ...
分类:
Web程序 时间:
2014-06-19 00:10:32
阅读次数:
285
class TestCase: def run(self, result=None): if result is None: result=self.defaultTestResult() result.startTest(self) t...
分类:
其他好文 时间:
2014-06-18 23:51:59
阅读次数:
355
1:#status .odd 是否奇数行2:#status.count 当前行数3:#status.index 当前行的序号,从0开始『#status.count=#status.index+1』4:#status.first 是否第一行5:#s...
分类:
其他好文 时间:
2014-06-18 23:39:39
阅读次数:
266
----struts2.1.8---- struts2-core-2.1.8.1.jar struts2核心包struts2-json-plugin-2.1.8.1.jar struts2的json插件--var s = {name:"zhangs",age:"18"}struts2-s...
分类:
编程语言 时间:
2014-06-18 22:18:46
阅读次数:
274
在我们定义Action的时候会希望有一个默认的action在写错action时或者不写action时不至于报错这里我只写一个简单的strut.xml例子 ...
分类:
其他好文 时间:
2014-06-18 21:13:30
阅读次数:
278
在应用有frameset或者iframe的页面时,parent是父窗口,top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe),self是当前窗口, opener是用open方法打开当前窗口的那个窗口。window.self功能:是对当前窗口自身的引用。它和window属性是等...
给定一个矩阵,寻找连通域个数:前后左右相同为连通ex:0 1 0 10 1 1 10 0 1 00 1 0 0输出2利用深度搜索思路: 1 public static int getCount(int[][] A) { 2 int result = 0; 3 ...
分类:
编程语言 时间:
2014-06-15 12:23:22
阅读次数:
758