CodeMaking类的方法如下::
public static Hashtable getRequestclime(int applicationID){
Hashtable result=new Hashtable();
if (applicationID<0)
{
result.put("retCode",new Integer(-1));
return result;
}
try {
String sqlstring="select clime from TAB_LX_INFO where APPLICATIONID="+applicationID+"";
Hashtable rs = dbconnect.queryRow(sqlstring);
if (rs==null)
{
result.put("retCode",new Integer(-2));
return result;
}
result.put("clime",(String)rs.get("clime")); }
catch (Exception ex) {
result.put("retCode",new Integer(-4));
return result;
}
return result;
}clime的字段值如: 北京,上海,大连
我想程序前面应该没问题,出错应该在 StringTokenizer.....
public static Hashtable getRequestclime(int applicationID){
Hashtable result=new Hashtable();
if (applicationID<0)
{
result.put("retCode",new Integer(-1));
return result;
}
try {
String sqlstring="select clime from TAB_LX_INFO where APPLICATIONID="+applicationID+"";
Hashtable rs = dbconnect.queryRow(sqlstring);
if (rs==null)
{
result.put("retCode",new Integer(-2));
return result;
}
result.put("clime",(String)rs.get("clime")); }
catch (Exception ex) {
result.put("retCode",new Integer(-4));
return result;
}
return result;
}clime的字段值如: 北京,上海,大连
我想程序前面应该没问题,出错应该在 StringTokenizer.....
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货