java代码如下:
        /**
 * 方向号列表
 * 
 * @return @
 */
public Vector listFxh(String dbName) {
Vector vtrFxh = new Vector();
String strSql = "select fxh,fxmc,node_pattern from fxh_fxhhy  order by fxh ";
Connection conn = DbProxy.getCurConnection(dbName);
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
pstmt = conn.prepareStatement(strSql);
rs = pstmt.executeQuery();
while (rs.next()) {
JlXtwhInfo jlxtwhInfo = new JlXtwhInfo();
jlxtwhInfo.setFxh(rs.getString("fxh"));
jlxtwhInfo.setFxmc(rs.getString("fxmc"));
jlxtwhInfo.setNode_pattern(rs.getString("node_pattern"));
vtrFxh.add(jlxtwhInfo);
}
rs.close();
pstmt.close();
} catch (SQLException e) {
e.printStackTrace();
Logger.debug("APPLOG", "JlXtwhDao listFxh error=" + e.getMessage());
} finally {
DbProxy.closeCurConnection(dbName);
}
return vtrFxh;
} jsp 代码如下:<body> <form id="fz" name="fz" method="post" action="">
<label>
发站
<input type="text" name="fz" />
</label>
</form>
<label></label>
<form id="dz" name="dz" method="post" action="">
<label>
到站
<input type="text" name="dz" />
</label>
<label>
<input type="submit" name="Submit" value="提交" />
</label>
</form>
<form id="route" name="route" method="post" action="">
<label>
生成径路
<input name="route" type="text" value="<%=route%>" size="100" />
</label>
</form>
<label>
<div align="center">
<span class="STYLE5">径路配置管理</span>
</div>
</label>
<form name="form1" method="post" action="">
<div align="center">
<table>
<table width="450" border="1">
<tr>
<td>
<div align="center">
方向号
</div>
</td>
<td>
<div align="center">
方向名称
</div>
</td>
<td>
<div align="center">
配置路径
</div>
</td>
</tr> <%
for (int i = 0; i < vectorFxh.size(); i++) {
jldata = (JlXtwhInfo) vectorFxh.elementAt(i);
%>
<tr> <td height="20"><%=jldata.getFxh()%></td>
<td height="20"><%=jldata.getFxmc()%></td>
<td height="20"><%=jldata.getNode_pattern()%></td> </tr>
<%
}
%>
</table>
</table>
</div>
</form>
</body>现在数据可以查出来,但是不知道怎么修改,多谢哈