- 浏览: 179658 次
- 性别:
- 来自: 河南
最新评论
-
huwen_hua:
java上传图片处理 -
甜甜奥利奥:
正需要 非常感谢分享~~
java创建TXT文件,并写入数据 -
shma1664:
可以把完整的代码贴出来吗???谢谢啊!!!!
FLEX AdvancedDataGrid 复选框 -
lilian_andy:
楼主,能不能在解析一个文件之后,创建一个临时文件,再将解析的 ...
java创建TXT文件,并写入数据 -
bsq519:
很好。正在找呢。
java创建TXT文件,并写入数据
文章列表
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开 ...
- 2009-02-20 13:52
- 浏览 2822
- 评论(0)
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 ...
- 2009-02-19 10:13
- 浏览 876
- 评论(0)
hibernate一个Session有一个Cache,cache屏蔽了应用程序直接去访问数据库,如果同一张table的同一row在先前已经被请求过,那么为何下次请求的时候还要去请求一次呢,把前面的cache住,再遇到这样的请求直接返回cache里边的即可。
cache里边的数据如果含有脏数据,需要跟数据库同步(也就是需要hibernate来发送update, delete, insert),调用session.flush()达到此目的。一般情况下,hibernate在一个tx.commit()的时候会自动调用session.flush();也可以应用程序手动调用session.flush()来 ...
- 2009-02-18 14:50
- 浏览 1202
- 评论(0)
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 ...
- 2009-02-18 10:59
- 浏览 35108
- 评论(0)
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/ ...
- 2009-02-16 16:48
- 浏览 1441
- 评论(0)
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"?& ...
- 2009-02-16 16:23
- 浏览 850
- 评论(0)
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" ?>
& ...
- 2009-02-16 16:10
- 浏览 522
- 评论(0)
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 ...
- 2009-02-16 15:52
- 浏览 1116
- 评论(0)
/**
* 发送电子邮件
*
* @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();// ...
- 2009-02-16 15:38
- 浏览 935
- 评论(0)
<%response.setHeader("Pragma","no-cache");
response.setHeader("Cache-Control","no-store");
response.setDateHeader("Expires",-1);%>
把上面的代码加在JSP页面上就可以了.
当用户操作过程中点击后退时,就相当于重新访问了前一个JSP页面.
(当然,这个并不算是一个很好的方法!仅供参考…… )
- 2009-02-13 11:45
- 浏览 1196
- 评论(0)
问题:
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 ...
- 2009-02-13 11:34
- 浏览 2389
- 评论(0)