<%!void GetContract(String Str,Vector V_Ret)
{
int ipos=Str.indexOf("|");
if(ipos==-1)
{
V_Ret.add(Str);
return;
}
else
{
String Str1=Str.substring(0,ipos);
String Str2=Str.substring(ipos+1);
V_Ret.add(Str1);
GetContract(Str2,V_Ret);
}
}
%>
<%
Vector V_Contract=new Vector();
String StrCONTRACT_ID="123456|99999|8888";
GetContract(StrCONTRACT_ID,V_Contract); for(int i=0;i<V_Contract.size();i++)
{
out.println(V_Contract.elementAt(i););
}
%>大家帮我看一下这个东西哪里错了
Generated servlet error:
{
int ipos=Str.indexOf("|");
if(ipos==-1)
{
V_Ret.add(Str);
return;
}
else
{
String Str1=Str.substring(0,ipos);
String Str2=Str.substring(ipos+1);
V_Ret.add(Str1);
GetContract(Str2,V_Ret);
}
}
%>
<%
Vector V_Contract=new Vector();
String StrCONTRACT_ID="123456|99999|8888";
GetContract(StrCONTRACT_ID,V_Contract); for(int i=0;i<V_Contract.size();i++)
{
out.println(V_Contract.elementAt(i););
}
%>大家帮我看一下这个东西哪里错了
Generated servlet error:
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货