- 浏览: 59666 次
- 性别:
- 来自: 上海
最新评论
-
seven_cuit:
正在学习spring mail,楼主这篇文件对我很有帮助了,谢 ...
Spring Mail -
herowzz:
annotation validation 越看越丑陋...
struts2 annotation validation simple -
JimyChen:
逼到极限就会出人命了!
lazy -
脑袋雷劈的:
Friedrich 写道
拾荒的和要饭的里也有月薪10k的
找 ...
lazy -
Friedrich:
shoppingbill 写道魔尊重楼 写道
没办法去卖猪肉吧 ...
lazy
文章列表
创建数据库:
DROP TABLE IF EXISTS `oa`.`t_system_log`;
CREATE TABLE `oa`.`t_system_log` (
`LOG_ID` varchar(20) NOT NULL default '',
`LOG_TYPE` char(2) NOT NULL default '',
`EVENT` varchar(100) NOT NULL default '',
`REG_DATETIME` datetime NOT NULL default '0000-00-00 00:00:00',
`REG_ ...
- 2009-11-05 17:29
- 浏览 1768
- 评论(0)
删除数据库中重复的记录:
查出不重复的记录插到temp 表中.
select distinct * into #temp from tableName
删除数据库中所有的记录
delete from tableName
查询所有的记录再插到tableName表中
select * into #tableName from temp
- 2009-10-20 15:40
- 浏览 772
- 评论(0)
1、有两个桶,一个能盛5升水,一个能盛3升水,如何用测量出4升水?
Answer:
step 1: 用3L的桶打满水倒入5L的桶中,取得3L水.
step 2: 再3L的桶打满水倒入5L的桶中,这时5L的桶装满3L的桶还剩下1L(3L+3L-5L).
step 3: 把5L桶里面的水全部倒掉,将3L桶中的1L水倒入5L桶中.
step 4: 这时5L桶中有1L水,然后再用3L桶装满水倒入其中.(1L+3L=4L)OK.
2、编写程序求解:1-2+3-4+5…….n
Answer:
/**
* @author Bill.Zhang
*
* ...
1、有两根不均匀分布的香,香烧完的时间是一个小时,你能用什么方法来确定一段45分钟的时间?
Answer:
step 1: 在同一个时间将第一根香的两端点着,并把第二根香的一端点着.
step 2: 当第一根香(两端点着的那根)烧完的时候是 ...
今天想在自己的机器做个下练习,晕的是我以前安装MYSQL密码忘记了.呵呵.于是Google下.呵呵,成功了.真是让人欣慰啊.
Step 1:
停止MYSQL服务.
Step 2:
在C:\下建立一个文件叫mysql-init.txt.
文件中填入
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword');
Step 3:
到你的MYSQL安装目录的bin下运行一下语句
mysqld-nt --init-file=C:\mysql-init.txt
Windows会弹出个安全 ...
Ant > Ant Properties File
Ant Properties File
You can also group all the property values in a separate properties file and include it in the ant build file. Here the build.properties file contains all the property values. Remember the property value is immutable, so if you set a pro ...
- 2009-10-12 14:22
- 浏览 3055
- 评论(0)
Ant > Ant Property Task
Ant Property Task
The <property> task is used to set the Ant properties. The property value is immutable, once the value is set you cannot change it. To set a property to a specific value you use Name/value assignment.
<property> task 是用来设置Ant属性 ...
- 2009-10-12 13:45
- 浏览 1718
- 评论(0)
Ant > Sample Ant Build File - WAR
Sample Ant Build File - WAR
I am using the Spring SimpleFormController example to illustrate the build process. The figure below shows the structure of the web application.
我用的是Spring SimpleFormController example 来阐明build处理过程. Web应用结构配置如下:
All the ...
Ant > Ant Eclipse IDE Integration
Ant Eclipse IDE Integration
To integrate Ant build file with the Eclipse IDE, first create a build.xml file, right click the project select New->Other->XML, enter the name as build.xml and click Finish.
Eclipse IDE 集成Ant,首先要创建一个build.xml文件 ...
- 2009-10-10 18:03
- 浏览 910
- 评论(0)
Ant > Sample Ant Build File - JAR
Sample Ant Build File - JAR
In this example you will see how to structure the project. If the grows bigger, it will become a problem to manages the files if all the files are there in the same directory.
For a easier maintenanace all the source ...
- 2009-10-10 17:28
- 浏览 1213
- 评论(0)
Learn how to install Ant and compile a simple hello world program.学习怎样安装Ant和编译一个简单的hello world程序Ant > Ant Installation Ant InstallationAnt is free and open source build tool, written in Java, helps in automating the entire build process of a Java development project.Ant安装Ant是免费和开源的build工具,用Java编写, ...
IHello.java
package org.springsource.proxy;
/**
* @author billzhang
*
*/
public interface IHello {
void sayHello(String name);
}
HelloImpl.java
package org.springsource.proxy;
/**
* @author billzhang
*
*/
public class HelloImpl implements IHello {
public void sayHe ...
软件外包网站,在国外叫兼职网站,可以用兼职(freelance),离岸开发(Offshore Outsourcing)等关键字搜索,
下面是个人收集的一些软件外包网站链接
网站地址 注册时间 活动高峰期 页面数 PR site
http://www.codeproject.com 2000 ,2005 517 7 45,500
http://www.outsourcexp.com 2005 ,2006 37 4 1,180
http://www.getafreelancer.com 2004 ,2005 687 4 36,600
http://www.ifreelance.com robot ...
- 2009-09-24 19:59
- 浏览 775
- 评论(0)
Required jar:
commons-fileupload-1.2.X.jar
commons-logging-1.0.X.jar
freemarker-2.3.X.jar
ognl-2.1.X.jar
struts2-convention-plugin-2.1.X.jar
struts2-core-2.1.6.jar
xwork-2.1.2.jar
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" versio ...
- 2009-09-21 13:12
- 浏览 2841
- 评论(1)
这几天做项目时遇到了个问题就是我想通过<a href="XX/XX.do?name="中文" ">XX </a> 这个时候不会报错也不显示name。于是寻求解决方案:
用js创建一个post form 在jsp页面上把参数传进来
dynamicform.js
function openHref(myAction, paramName, paramValue) {
var submitForm = getNewSubmitForm();
createNewFormElement(submitForm, paramName, ...
- 2009-08-01 14:01
- 浏览 1418
- 评论(0)