谢谢热心吧友:myeclipse已连接上mysql,但网页显示不出数据咋办
myeclipse吧
全部回复
仅看楼主
level 1
jsp页面
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<table width="1200px" align="center">
<tr>
<th>客房类型编号 </th>
<th>客房编号</th>
<th>对应房型</th>
<th>房间单价</th>
<th>可预订的房间数</th>
</tr>
<c:forEach items="${AList}" var="A">
<tr>
<td>${A.rtypeno}</td>
<td>${A.rno}</td>
<td>${A.rtype}</td>
<td>${A.rprice}</td>
<td>${A.rnum}</td>
</tr>
</c:forEach>
</table>
</body>
</html>
2016年05月06日 16点05分 1
level 1
自己顶,怎么办啊?
2016年05月06日 17点05分 2
1