10 2011 档案
摘要:<script> var t = 3; setInterval("testTime()", 1000); //启动1秒定时 function testTime() { if (t == 0) { window.location= http://www.qq.com; Window.clearInterval(); } else { if(navigator.appName.indexOf("Explorer") > -1){ doc...
阅读全文
摘要:1 import java.io.File; 2 import java.io.FileInputStream; 3 import java.io.IOException; 4 import java.security.MessageDigest; 5 import java.security.NoSuchAlgorithmException; 6 import org.springframework.stereotype.Component; 7 import com.tg.exception.DataValidException; 8 9 @Component10 public cla..
阅读全文
摘要:1 public class DefaultSessionListener implements HttpSessionListener { 2 3 public void sessionCreated(HttpSessionEvent arg0) { 4 5 ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(arg0.getSession().getServletContext()); 6 IMemberService memberSe...
阅读全文
摘要:1,去http://code.google.com/p/kaptcha/downloads/list下载kaptcha-2.3.2.zip包,或直接【点此下载】解压交其中的kaptcha-2.3.2.jar 导入项目目录下lib2,向web.xml里添加servlet<servlet> <servlet-name>Kaptcha</servlet-name> <servlet-class>com.google.code.kaptcha.servlet.KaptchaServlet</servlet-class> </servle
阅读全文