上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
摘要: /WEB-INF/jsp/login.jsp public class SessionInterceptor extends AbstractInterceptor{ public String intercept(ActionInvocation actionInvocation) { Map session = actionIn... 阅读全文
posted @ 2013-12-09 19:42 holycrap 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 1. action中加上file属性2. form表单中加上 input type="file"3. form表单属性加上enctype="multipart/form-data"4. action类中加上xxxFileName, xxxContentType属性,以便获取文件名和类型5. 配置属性package com.wolfgang.action;import java.io.File;import java.io.IOException;import org.apache.commons.io.FileUtils;import org.sprin 阅读全文
posted @ 2013-12-07 12:25 holycrap 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 常见算法在实际项目中的应用原文出处:StackExchange译文出处:infoQ近日Emanuele Viola在Stackexchange上提了这样的一个问题,他希望有人能够列举一些目前软件、硬件中正在使用的算法的实际案例来证明算法的重要性,对于大家可能给到的回答,他还提出了几点要求:使用这些算法的软件或者硬件应该是被广泛应用的;例子需要具体,并给出确切的系统、算法的引用地址;在经典的本科生或者博士的课程中应该教过这些算法或者数据结构;Vijay D的回复获得了最佳答案,他的具体回复内容如下:Linux内核中的基本数据结构和算法链表、双向链表和无锁链表;B+ 树,代码中的注释将会告诉你一些 阅读全文
posted @ 2013-12-05 11:11 holycrap 阅读(696) 评论(0) 推荐(0) 编辑
摘要: action invoke前会调用,invoke后会调用public class FirstInterceptor extends AbstractInterceptor{ @Override public String intercept(ActionInvocation actionInvocation) throws Exception { String result = actionInvocation.invoke(); return result; } } ... 阅读全文
posted @ 2013-12-04 22:50 holycrap 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 需要注意的是,action需要先被调用到,OGNL才能成功,因为action被执行才被压入值栈package com.wolfgang.action;import com.opensymphony.xwork2.ActionSupport;public class TestOGNL extends ActionSupport{ private String name="jeff"; public String getName() { return name; } public void setName(String name) { this.... 阅读全文
posted @ 2013-12-04 22:18 holycrap 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1.小写 2.大写 package com.wolfgang.common;public class StringUtil { public static String toUpperCase(String str) { return str.toUpperCase(); } public static String toLowerCase(String str) { return str.toLowerCase(); } } 阅读全文
posted @ 2013-12-04 21:46 holycrap 阅读(345) 评论(0) 推荐(0) 编辑
摘要: $("#demo").jstree({ "json_data":{ "data":[ { "data":{ "title":"捷大信息科技有限公司", "attr":{"href":"www.sohu.com","target":"_top"} }, "attr":{"id":"111","name" 阅读全文
posted @ 2013-12-03 08:14 holycrap 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.$("#id") $("xxxxx") (input, body) $(".class")2. $("#id xxx") 空格后跟的是包含3. $("input[name='name']") input的name属性为name4.$("#id").bind("click", function(event){ event.target ---指向id});5. $("#id").addClass("" 阅读全文
posted @ 2013-12-02 21:36 holycrap 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 1. 登录oracle数据库,执行select status from v$encryption_wallet,如果返回OPEN,表示钱夹已自动打开。2. 阅读全文
posted @ 2013-12-02 16:43 holycrap 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1. #define LOWER(c) (unsigned char)(c | 0x20) 换成小写2. gcc -Wall -Werror //告警当成 错误来处理3. gcc -Ox //优化等级,一般debug搞成0, release搞成34. 一种处理错误码的方法不说什么,贴... 阅读全文
posted @ 2013-12-02 13:07 holycrap 阅读(358) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页