文章列表
import java.text.*;
/**
* @author wang wei wKF22287
* @since 2010
*/
public class CNNumberTools
{
/** "零","壹","贰","叁","肆","伍","陆","柒","捌","玖" */
private final static String[] n ...
/** MD5加密 */
public static String getMD5(String srcString)
{
StringBuffer destString = new StringBuffer();
java.security.MessageDigest md = null;
try
{
md = java.security.MessageDigest.getInstance("MD5");
}
c ...
一、转换自定义类的基本方法
1.1 新建2个自定义的类
package com.test.bean;
/**
* 三维点(x,y,z)
*/
public class Point {
private Integer x;
private Integer y;
private Integer z;
// setter和getter
}
package com.test.bean;
/**
* 矩形(height,width)
*/
public class Rectangle {
private Integer height;
privat ...
- 2009-06-03 18:18
- 浏览 2314
- 评论(0)
struts官方网址:http://struts.apache.org
1.新建web工程,导入基本的5个jar包:
commons-logging-1.0.4.jar
freemarker-2.3.8.jar
ognl-2.6.11.jar
struts2-core-2.0.14.jar
xwork-2.0.7.jar
2.配置web.xml过滤器
<filter>
<filter-name>struts2</filter-name>
<filter-cla ...
- 2009-06-02 17:07
- 浏览 956
- 评论(0)