12 2010 档案
摘要:http://wangking717.javaeye.com/blog/769021function DrawImg(imgId,boxWidth,boxHeight){var imgWidth=("#"+imgId).height();//比较imgBox的长宽比与img的长宽比大小if((boxWidth/boxHeight)=(imgWidth/imgHeight)){//重新设置img的width和height
阅读全文
摘要:package com.broadengate.common;import java.security.MessageDigest;public class PasswordEncoder { private final static String[] hexDigits = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b...
阅读全文
摘要:刷新父窗口 关闭自己% String regFlag=(String)request.getAttribute("parseFlag");// if("1".equals(regFlag)){// out.print("script");// out.print("parent.location.reload();");// out.print("/script");// } %
阅读全文
摘要:!-- 400错误 --error-pageerror-code400/error-codelocation/errorPage.jsp/location/error-page!-- 404 页面不存在错误 --error-pageerror-code404/error-codelocation/errorPage.jsp/location/error-page!-- 500 服务器内部错误 --error-pageerror-code500/error-codelocation/errorPage.jsp/loca
阅读全文
摘要://匹配帐号是否合法(字母开头,允许5-16字节,允许字母数字下划线Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->var re =new RegExp("^[a-zA-Z][a-zA-Z0-9_]{5,19}$"); if(re.test(aaaa)){alert("格式正确");}else{alert("格式错误");}var s_currency = /^([1-9][\d]{
阅读全文
摘要:在service类前加上@Transactional,声明这个service所有方法需要事务管理。每一个业务方法开始时都会打开一个事务。 Spring默认情况下会对运行期例外(RunTimeException)进行事务回滚。这个例外是unchecked 如果遇到checked意外就不回滚。 如何改变默认规则: 1 让checked例外也回滚:在整个方法前加上 @Transactional(rollbackFor=Exception.class) 2 让unchecked例外不回滚: @Transactional(notRollbackFor=RunTimeException.class) 3
阅读全文
摘要:%String pstrScript="script language='javascript'window.parent.location='login.jsp';/script"; out.print(pstrScript); %
阅读全文