<select name="LineName" onchange="javascript:main.submit();">
<%
_sqlStr="select LINE_NAME from SFIS1.C_LINE_DESC_T";
_tmpSmt=_con.createStatement();
_tmpRs=_tmpSmt.executeQuery(_sqlStr);
while(_tmpRs.next())
{
String _tmpLineName=_tmpRs.getString(1);
out.println("<option value=\""+_tmpLineName+"\"");
if(_tmpLineName.equals(_lineName))
out.println("selected");
out.println(">"+_tmpLineName+"</option>");
}
if(_tmpRs!=null)_tmpRs.close();
if(_tmpSmt!=null)_tmpSmt.close();
%>
</select>
<%
_sqlStr="select LINE_NAME from SFIS1.C_LINE_DESC_T";
_tmpSmt=_con.createStatement();
_tmpRs=_tmpSmt.executeQuery(_sqlStr);
while(_tmpRs.next())
{
String _tmpLineName=_tmpRs.getString(1);
out.println("<option value=\""+_tmpLineName+"\"");
if(_tmpLineName.equals(_lineName))
out.println("selected");
out.println(">"+_tmpLineName+"</option>");
}
if(_tmpRs!=null)_tmpRs.close();
if(_tmpSmt!=null)_tmpSmt.close();
%>
</select>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货