首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

为啥出不来呢 ?

2013-07-09 
为什么出不来呢 ??%@ page languagejava pageEncodingUTF-8%%@ taglib prefixc urihttp://j

为什么出不来呢 ??
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
  <head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">    
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
    <LINK href="<%=path %>/css/css.css" type=text/css rel=stylesheet>
    <script type="text/javascript" src="<%=path %>/js/popup.js"></script>
  </head>
  
  <BODY text=#000000  leftMargin=0 topMargin=0>
<div class="wrap"> 
<TABLE  cellSpacing=0 cellPadding=0 width="100%" align=center border=0  background="<%=path %>/img/reservation01.gif">
<TR height="90">
<TD align="center">
    <jsp:include flush="true" page="/qiantai/inc/incTop1.jsp"></jsp:include> 
</TD>
</TR>
</TABLE>


<TABLE id=guide cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TR>
<TD align="left">
<jsp:include flush="true" page="/qiantai/inc/incTop2.jsp"></jsp:include>
</TD>
</TR>
</TABLE>
        <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TR height="3">
<TD align="left"></TD>
</TR>
</TABLE>
        <c:forEach items="${requestScope.mealList}" var="meal">
    <table align="center" rules="none" border="1" width="100%" cellspacing="0" cellpadding="3" bordercolor="lightgrey" bordercolorlight="lightgrey" bordercolordark="white">
<tr height="30">
<td style="text-indent:5" background="<%=path %>/img/classT.jpg">
<span style="float:left;color: white;font-size: 11px;">
   <b>${meal.mealName}</b>
</span>
</td>
</tr>
<tr bgcolor="#F9F9F9">
<td height="60" align="center">
<table border="1" width="100%" cellspacing="0" cellpadding="0" bgcolor="#F9F9F9" bordercolor="#EEEEEE" bordercolorlight="#EEEEEE" bordercolordark="white" rules="cols">
<tr height="20" align="center" bgcolor="#F4F4F4">
              <td width="5%"></td>
              <td width="50%" style="font-size: 11px;">菜品名称</td>


              <td width="5%" style="font-size: 11px;">菜品单价</td>
        </tr>
<c:forEach items="${meal.mealList}" var="meal">
<tr height="30" align="center">
<td>
<img src="<%=path %>/img/boardPic.jpg">
</td>
<td align="left" style="font-size: 11px;">
<img src="<%=path %>/img/btitle.jpg">
<a href="<%=path %>/meal?type=mealDetail&mealNo=${meal.mealNo}">${meal.mealName}</a>
</td>
<td style="font-size: 11px;">
${meal.price}
</td>

</tr>
</c:forEach>
</table>
</td>
</tr>
</table>
<table><tr><td></td></tr></table>
</c:forEach>
<jsp:include flush="true" page="/qiantai/inc/incFoot.jsp"></jsp:include>
    </div>
  </BODY>
</html>

</html>
[解决办法]
第一,你是《神探狄仁杰》的粉丝么?
第二,没用,是啥意思呢?是<c:forEach>标签没用,还是页面上无数据显示(如果这样,那应该是你的meanList没取到值呗)
[解决办法]
你只贴了一大段的代码,但是你没有说你的问题啊 ,是什么没有用啊,你不说清楚你的这个贴子也是没用的,楼上的那位仁兄想帮你解决都不知道怎么解决啊

热点排行