怎样把数据库中数据加入表格? 不太明白,分页显示吗?http://expert.csdn.net/Expert/topic/1729/1729983.xml?temp=.5648462 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看我的:<table><%while (RS.next()) {%> <tr > <td align="center"><font size="2" color="#000080"><%=RS.getString("MCh")%></font></td> <td align="center" ><font size="2" color="#000080"><%=RS.getString("XHGG")%></font></td> <td align="center" ><font size="2" color="#000080"><%=RS.getString("DW")%></font></td> <td align="center" ><font size="2" color="#000080"><%=RS.getString("ShL")%></font></td> <td align="center" ><font size="2" color="#000080"><%=RS.getFloat("DJ")%></font></td> <td align="center" ><font size="2" color="#000080"> <%=(RS.getInt("ShL"))*(RS.getFloat("DJ"))%></font></td> <td align="center" ><font size="2" color="#000080"><%=RS.getString("GJRQ")%></font></td> </tr><%}%></table> 哇,我想他的意思是要把表格保存到数据库吧~~用UBB吧:) 如果你想在java应用程序中用表格显示的话,你可以继承抽象类:AbstractTableModel可以满足基本的要求。如果你是要在Jsp中显示的话,楼上yannqi(燕祺) 已经说过啦!!! [求助]这个jsp页面设计如何实现 请大家帮我看看这段代码 注销的代码怎么写啊? 请教:web应用程序发布后,用ie浏览器打开后出错? 实现一个整型数组类似java.lang.String的charAt方法 request的getHeader()方法和getParameter()方法有什么区别呀 新手问题---请推荐新手使用的(谢谢!~) web 自动执行!。急急急,在线等。。。。 Servlet怎么运行不了,另外还有一些小问题。 spring mvc接收对象参数问题 急问一个关于oracle中文支持的问题 jsp的刷新问题---续
<table>
<%while (RS.next()) {%>
<tr >
<td align="center"><font size="2" color="#000080"><%=RS.getString("MCh")%></font></td>
<td align="center" ><font size="2" color="#000080"><%=RS.getString("XHGG")%></font></td>
<td align="center" ><font size="2" color="#000080"><%=RS.getString("DW")%></font></td>
<td align="center" ><font size="2" color="#000080"><%=RS.getString("ShL")%></font></td>
<td align="center" ><font size="2" color="#000080"><%=RS.getFloat("DJ")%></font></td>
<td align="center" ><font size="2" color="#000080"> <%=(RS.getInt("ShL"))*(RS.getFloat("DJ"))%></font></td>
<td align="center" ><font size="2" color="#000080"><%=RS.getString("GJRQ")%></font></td>
</tr><%}%></table>