runtime.log = velocity_example.log
default.contentType=text/html; charset=GBK
input.encoding = GBK
output.encoding = GBK
##userdefine
tablecount=1
table1.tablename=USERS
table1.columns=ID#USERNAME#PASSWORD
table1.columnsvalues= 编号#用户名#密码
以上是 velocity.properties中的配置信息
int _TableCount=Integer.parseInt(Velocity.getProperty("tablecount").toString());
String _columsname[i]=Velocity.getProperty("table"+(i+1)+".columnsvalues").toString();
_columsname[i]=new String(_columsname[i].getBytes("ISO-8859-1"),"GBK");
System.out.println("_columsname[i]:"+_colums[i]);