- 博客(113)
- 资源 (11)
- 收藏
- 关注
原创 ueditor配置上传
这个是新建的一个Ueditor的项目的目录,把下载的插件拷进项目里面,在ueditor里面新建一个upload文件夹存放上传图片。当然你也可以在其他地方新建这个文件夹。具体配置下面有解释。发图吧! 这里主要配置图片上传和图片管理这两个功能。首先,导入两个包commons-fileupload-1.2.2.jar,ueditor.jar,(不会不知道...
2013-11-13 15:53:37 178
原创 MemCached的使用--小型单点登录
/*** 使用memcached的缓存实用类.* * @author 铁木箱子**/public class MemCached{ // 创建全局的唯一实例 protected static MemCachedClient mcc = new MemCachedClient(); protected static MemCached memCached = new Mem...
2012-08-02 17:33:08 130
原创 meclipse 8.6自带jar包与项目jar包冲突处理
preferences->MyEclipse->Project Capabilities->Spring 中将自带的spring jar包去掉 项目properties->MyEclipse->Spring ->Enable project specific settings 勾上 。。。。。。。。。。将Project builds 下的2项去掉 ...
2012-08-02 17:28:55 105
有关存储clob大字段的设置
1 spring中 配置<bean id="nativeJdbcExtractor" class="org.springframework.jdbc.support.nativejdbc.CommonsDbcpNativeJdbcExtractor" lazy-init="true" /> <bean id="oracleLobHandler" class="or
2010-04-30 16:48:43 167
spring AOP 拦截日志
1 首先引入jar包 spring.jar aopalliance.jar aspectjrt.jar aspectjtools.jar aspectjweaver.jar cglib-nodep-2.1_3.jar cglib-src-2.2.jar 这些个jar包不一定都用得上,但离配置到现在整理已经比较久了 有点忘了. 2 spring 配置...
2010-04-30 14:46:24 108
spring ibais 配置连接池
1、下载相关资源。 从http://proxool.sourceforge.net/站点上下载我们需要的资源,proxool-0.9.1是最新版本,解压后从lib下copy里面的2个JAR包 proxool-0.9.1.jar和 proxool-cglib.jar至项目中去。如果不加proxool-cglib.jar的话会报 java.lang.ClassNotFoundExc...
2010-04-30 10:58:17 104
jsp伪静态
1 在web.xml配置文件中 <filter> <filter-name>UrlRewriteFilter</filter-name> <filter-class> org.tuckey.web.filters.urlrewrite.UrlRewriteFilter </filter-class> <...
2010-04-23 16:01:54 68
struts2
action里边这么写: HttpServletRequest request = ServletActionContext.getRequest(); request.setAttribute("listname",list);其中listname为自定义的名字,list为你查出来的集合jsp里边这么接收:<s:iterator value="#reque...
2010-03-14 22:08:36 63
页面编译带html格式的字符串
<bean:write name="bookInfoVO" property="bookIntro" filter="false" /> <bean:write name="bookInfoVO" property="bookIntro"escape="false"/> <bean:write&am
2010-03-08 17:50:43 314
原创 编码的修改
如果你常常用 Eclipse 或者 MyEclipse ,那你就会跟我一样,会在保存页面的时候经常遇到这样的提示some character can not mapped using "iso-8859-1" character encoding ......以前上学的时候,老师讲过类似的解决办法,就是 1.右键选种 该项目,或该文件2.点击 properties ,看到左边 第一个 选项 inf...
2010-01-30 11:24:50 112
原创 tomcat 迁移到websphere的问题
1. ebsphere 页面显示后 立即转向res://ieframe.dll/http_404_webOC.htm 在tomcat下部署完全正常,换到websphere后本地访问也正常 到别人的机子访问本地时,页面正常显示后,马上跳转到“res://ieframe.dll/http_404_webOC.htm” 而且对于不同的机子访问我本机前面的路径还不一样 res://ieframe.dll...
2010-01-26 13:25:07 194
原创 有关ibatis映射结果的设置
<resultMap id="get-theResultMap" class="java.util.Map"> <result property="column1" column="column1" jdbcType = "VARCHAR"/> <result property="column0" colu
2010-01-21 17:22:04 78
原创 为null时,插入报错
<!--Content表 插入应的记录到数据库中 --> 2. < insert id = "insertContent" parameterClass = "com.unmi.content" > 3. INSERT INTO PERSON(ID,NAME,SERVICEID) VALUES(#id#,#name#,#serviceid#) 4. <...
2010-01-21 14:11:21 215
原创 有关tomcat java.lang.OutOfMemoryError: Java heap space
以下是从网上找到的关于堆空间溢出的错误解决办法:java.lang.OutOfMemoryError: Java heap space ===================================================使用Java程序从数据库中查询大量的数据时出现异常:java.lang.OutOfMemoryError: Java heap space在JVM中...
2010-01-16 17:12:23 140
字符集操作
select userenv('language') from dual; select name,value$ from props$ where name='NLS_CHARACTERSET'; --查询服务器端字符集select * from nls_database_parameters--查询客户端字符集select * from nls_instance_...
2009-10-28 15:56:33 140
原创 oracle导入导出操作
Oracle数据导入导出imp/exp就相当于oracle数据还原与备份。exp命令可以把数据从远程数据库服务器导出到本地的dmp文件,imp命令可以把dmp文件从本地导入到远处的数据库服务器中。 利用这个功能可以构建两个相同的数据库,一个用来测试,一个用来正式使用。 执行环境:可以在SQLPLUS.EXE或者DOS(命令行)中执行, DOS中可以执行时由于 在oracle 8i 中 ...
2009-10-28 15:54:49 56
ddddddddddddff
<app:PaginationLinkAjax name="shipFirmForm" property="pagination" method="waitShipfirmQuery" zone="searchshipFirm" /> <tag> <name>PaginationLinkAjax</name> &a
2009-09-10 17:04:29 422
ddddddddddddddddddd
public boolean lastEnable() { return nextEnable(); } public boolean nextEnable() { return current * pageSize < count; } public boolean previoEnable() { return current > 1; } ...
2009-09-10 16:01:34 346
dfsdfsdf
public void setStart(int start) { this.start = start; } public void firstPage() { current = 1; } public void nextPage(int iCurrent) { current = iCurrent + 1; if (current * pageSize &...
2009-09-10 16:01:11 195
dfsdf
public class Pagination { public static final int PAGESIZE=5; //分页每页的记录数 public static final String currentTag = "current"; //当前页 public static final String firstAction = "First...
2009-09-10 16:00:41 104
dsfsfdddddddd
//最后一页 if (pagination.lastEnable()) { results.append("<a href=\"javascript:lastPage_"+property+"(this.document."+name+");\" "); if (target != null) { results.append(" target=\""+target
2009-09-10 15:57:49 521
sdfsdf
private String generateTable(Pagination pagination) throws JspException { StringBuffer results = new StringBuffer(); //the "currentpage/pages" align left, html start. results.append("<t...
2009-09-10 15:57:02 75
gf454
private String generateGoJS(String method) { StringBuffer results = new StringBuffer(); results.append("function go(frm) {\n"); results.append("ajaxAnywhere.submitAJAX("); results.append(...
2009-09-10 15:55:39 69
333
lastValue = "<img src='"+sRootPath+"/images/last.gif'"+"/>"; gotoPageStart = RequestUtils.message(super.pageContext, bundle, localeKey, "label.tag.page.turn"); gotoPageEnd = Reques...
2009-09-10 15:55:00 73
1111ddddd
import com.***.it.framework.vo.common.Pagination;public final class PaginationLinkAjaxTag extends LinkTag{ private String zone; private String method ; private String firstValue; private String next...
2009-09-10 15:54:35 131
dsfsdfsad
<nested:text property="workflowTask.disableDate" styleId="disableDate_empty" readonly="true"/><input id="disableDate_empty.def" type="hidden" display="Invalid Date" extra=&quo
2009-09-07 14:16:16 79
dsfsdfsad
function afterTodayFomart(s) { var thisDate=new Date(); var year=thisDate.getFullYear(); var month=thisDate.getMonth()+1; var day=thisDate.getDate(); var farmatToday=year + "-" + month + "-" + day; va...
2009-09-07 14:15:30 112
dfsfsdf
function onlyDigits(s) { var str = /^[0-9]*$/; return (str.test(s));}function onlyHalfWidth(labelValue) { var reg=/[^\x00-\xff]/ig; return ! (reg.test(labelValue));}function emailFormat(s) {...
2009-09-07 14:15:07 180
dfdfdf
// phone format check var phone = felixdef.getAttribute('phone.format'); if (phone != null && phone.toUpperCase() == 'TRUE') { if (! phoneFormat(value)) { felixhint.innerHTML = errors.show...
2009-09-07 14:14:32 209
ddddddddddddddddd
var maxlength = felixdef.getAttribute('maxlength'); if (maxlength != null && ! isNaN(maxlength)) { var length=0; for(var i=0;i<value.length;i++){ if(value.charCodeAt(i)>128){ leng...
2009-09-07 14:14:13 484
dddddddddd
function getControlValue(control) { var result; var controlType = control.tagName.toUpperCase(); // in case of dropdown box if (controlType == 'SELECT') { var selectedIndex = control.selectedIndex;...
2009-09-07 14:12:42 182
ddddddddd
function disableAll() { var inputs = document.getElementsByTagName('INPUT'); for (i in inputs) { if (inputs[i].type == 'TEXT' || inputs[i].type == 'TEXTAREA') { inputs[i].readonly = true; } else {...
2009-09-07 14:12:17 178
ssdddddddddd
<plug-in className="org.apache.struts.tiles.TilesPlugin"> <set-property property="definitions-config" value="/WEB-INF/tiles/tiles-defs-sss.xml"/> <set-property property="moduleAware&q
2009-09-07 14:02:21 323
在做外包的日子1年1个月了
离开原先的公司,进入现在的外包公司,已经整整1年1个月了。 原先的公司算是国内比较大的上市公司,在那里感觉在混日子,从进去到离开将近2年的时间都在同一个项目里,到后来日子太轻松了,做些维护,开发阶段ctrl+c /ctrl+v 基本不用大脑,一天天清闲地过,感觉再不离开去多做点项目自己会废掉,终于下定决心离开了。 2006年11月到2008年7月底,一年零9个月的时间就这样过了。 ...
2009-08-31 20:37:53 176
纪念你的离去
一个那么好的人,一个那么有才的人,就这么走了。。。 周一还和你一起吃中饭,周3就这么走了,这么匆忙地走完了美好的人生,真是人生无常啊。。。希望你一路走好。 今天参加完你的告别会,听另外一个同事你的javaeye的博客有挺多不错的文章,确实是,可惜再也不能更新了。 整整走了一个星期了,以此纪念和你相识的短暂时光。 ...
2009-08-27 21:32:51 82
原创 字符串分割
--本文摘自klyuan 首先需要定义一个类型Java代码 type char_table is table of varchar2(4000); type char_table is table of varchar2(4000); 下面是具体的函数Sql代码 function split_string(pi_s...
2009-08-27 21:09:13 64
原创 字符串分割函数
--本文摘自klyuan Parameters: pi_string 要处理的字符 pi_separator 分隔符 pi_count 第n个分隔符 function get_part_char(pi_string in varchar2, pi_separator in varchar2, pi_count number) return ...
2009-08-27 21:05:31 66
原创 sql优化
--本文摘自klyuan 在压力测试时发现,如果原来的查询在0.1秒之内,那么在40个并发时,平均速度是3秒。目标要求是所有的查询必须要在7秒之内。有好几条SQL都是在7秒左右,肯定不能通过压力测试,必须要优化到2秒之内才有希望通过压力测试。(注:主要数据表的记录数都会超过60W条),所以只能是在项目组内进行SQL优化。(因为某些原因,案例所使用的SQL都是经过笔者处...
2009-08-27 21:03:13 70
取出非数字的最大值的sql
SELECT to_number(MAX(t.check_element_code))+1 FROM fo_check_rules_t t WHERE nvl2(translate(t.check_element_code, '\1234567890', '\'), '1', '2') = '2' and length(t.check_element_code)>8
2009-06-09 17:34:50 194
mysql-connector-java-5.1.20-bin.jar
2013-08-17
OSGi R4服务平台核心规范
2012-09-08
很不错的基于snmp的常用oid
2012-09-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人