帮我看看这段jsp代码
tyqiu 2002-03-08 05:48:03 <select name="eEventChargePlan" class="SelectFace" size="1" >
<%
Operator oper = (Operator)session.getAttribute("sessionOperator");
Vector ogs = (Vector)oper.getOfficeGroups().getValue() ;
String officeGroupsIDs = "0" ;
for ( int k=0; k<ogs.size() ;k++){
officeGroupsIDs = officeGroupsIDs +","+ ((OfficeGroup)ogs.elementAt(k)).getId() +"";
}
ClientSession aSession = AppManager.getInstance().getClientSession() ;
Vector vs = null;
vs = aSession.readAllObjects(ECPlan.class,"select distinct ecplan.* from ecplan,ecplan_to_officegrp where ecplan.id=ecplan_to_officegrp.ec_plan and ecplan_to_officegrp.office_group in ("+officeGroupsIDs+")");
for(int kk=0;kk<vs.size() ;kk++){
out.print("<option value="+((ECPlan)vs.elementAt(kk)).getId() +">"+((ECPlan)vs.elementAt(kk)).getDescription() +"</option>");
}
aSession.release() ;
%>
</select>
</select>