`
kidd
  • 浏览: 179658 次
  • 性别: Icon_minigender_1
  • 来自: 河南
社区版块
存档分类
最新评论
文章列表
SCRIPT LANGUAGE="JavaScript"> <!-- var myDate = new Date(); myDate.getYear(); //获取当前年份(2位) myDate.getFullYear(); //获取完整的年份(4位,1970-????) myDate.getMonth(); //获取当前月份(0-11,0代表1月) myDate.getDate(); //获取当前日(1-31) myDate.getDay(); //获取当前星期X(0-6,0代表星期天) myDate.getTime(); //获取当前时间(从1970.1.1开 ...
public final static String MD5(String pwd) { String Digest = ""; try { MessageDigest currentAlgorithm = MessageDigest.getInstance("md5"); currentAlgorithm.reset(); byte[] mess = pwd.getBytes();// 获取要加密的byte数组 byte[] hash = currentAlgorithm.digest(mess);// 获取加密以后的by ...
hibernate一个Session有一个Cache,cache屏蔽了应用程序直接去访问数据库,如果同一张table的同一row在先前已经被请求过,那么为何下次请求的时候还要去请求一次呢,把前面的cache住,再遇到这样的请求直接返回cache里边的即可。 cache里边的数据如果含有脏数据,需要跟数据库同步(也就是需要hibernate来发送update, delete, insert),调用session.flush()达到此目的。一般情况下,hibernate在一个tx.commit()的时候会自动调用session.flush();也可以应用程序手动调用session.flush()来 ...
126邮箱: POP:POP.126.com SMTP:SMTP.126.com http://mail.126.com/help/client_04.htm 163邮箱: POP:pop.163.com SMTP:smtp.163.com http://mail.163.com/help/help_client_04.htm 新浪邮箱: POP:pop.sina.com.cn 或:pop3.sina.com.cn SMTP:smtp.sina.com.cn http://tech.sina.com.cn/sinahelp/2002-06-14/120714.shtml TOM邮箱: PO ...
web.xml代码:下 <?xml version="1.0" encoding="GBK"?> <web-app version="2.4"          xmlns="http://java.sun.com/xml/ns/j2ee"          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"          xsi:schemaLocation="http://java.sun.com/ ...
web.xml代码:下 <jsp-config> <taglib> <taglib-uri>/my-function</taglib-uri> <taglib-location> /WEB-INF/tags/my-function.tld </taglib-location> </taglib> </jsp-config> function.tld代码:下 <?xml version="1.0" encoding="UTF-8"?& ...
web.xml代码:下 <jsp-config> <taglib> <taglib-uri>/my-tag</taglib-uri> <taglib-location> /WEB-INF/tags/my-tag.tld </taglib-location> </taglib> </jsp-config> tag.tld代码:下 <?xml version="1.0" encoding="UTF-8" ?> & ...
JSP代码:下 <html> <head> <title>会员注册</title> </head> <body onload="parameter(CERTTYPE)"> <s:form action="updatepassword.action"> <s:fielderror></s:fielderror> <s:token /> <table> <tr><td&g ...
/** * 发送电子邮件 * * @param tto *            要发送的邮件地址 * @param ttitle *            邮件标题 * @param tcontent *            邮件内容 */ public final static boolean sendMail(String tto, String ttitle, String tcontent) { boolean flag = false; try { Properties props = new Properties();// ...
Struts2相关JAR包,有需要的朋友可以下载!
<%response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-store"); response.setDateHeader("Expires",-1);%> 把上面的代码加在JSP页面上就可以了. 当用户操作过程中点击后退时,就相当于重新访问了前一个JSP页面. (当然,这个并不算是一个很好的方法!仅供参考…… )
问题: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored.信息: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate ...
Global site tag (gtag.js) - Google Analytics