第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

jsp頁面用el jstl輸出不了

jsp頁面用el jstl輸出不了

fenkapian 2016-08-14 10:02:33
代碼如下,用注釋掉的Java小腳本就能輸出,好像應(yīng)該叫JSP腳本。麻煩各位給我看看用el和jstl為什么不能輸出,哪里錯(cuò)了。<%@page import="cn.pb.news.entity.Bill"%><%@page import="java.util.List"%><jsp:useBean id="billService" class="cn.pb.news.service.impl.BillServiceImpl" scope="page"/><%@ page language="java" contentType="text/html; charset=UTF-8"??? pageEncoding="UTF-8"%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link type="text/css" rel="stylesheet" href="../css/style.css"/><title>Insert title here</title></head><body>?? ?<div class="menu">?? ?<form method="get" action="">?? ??? ?商品名稱:<input type="text" name="productName" class="input-text" />&nbsp;&nbsp;&nbsp;&nbsp;?? ??? ?是否付款:<select name="payStatus">?? ??? ??? ?<option value="">請(qǐng)選擇</option>?? ??? ??? ?<option value="1">已付款</option>?? ??? ??? ?<option value="0">未付款</option>?? ??? ?</select>&nbsp;&nbsp;&nbsp;&nbsp;?? ??? ?<input type="submit" name="submit" value="組合查詢" class="button" />?? ?</form></div><div class="main">?? ?<div class="optitle clearfix">?? ??? ?<em><input type="button" name="button" value="添加數(shù)據(jù)" class="input-button" onclick="location.href='modify.jsp'" /></em>?? ??? ?<div class="title">賬單管理&gt;&gt;</div>?? ?</div>?? ?<div class="content">?? ??? ?<table class="list">?? ??? ??? ?<tr>?? ??? ??? ??? ?<td>賬單編號(hào)</td>?? ??? ??? ??? ?<td>商品名稱</td>?? ??? ??? ??? ?<td>商品數(shù)量</td>?? ??? ??? ??? ?<td>交易金額</td>?? ??? ??? ??? ?<td>是否付款</td>?? ??? ??? ??? ?<td>供應(yīng)商名稱</td>?? ??? ??? ??? ?<td>商品描述</td>?? ??? ??? ??? ?<td>賬單時(shí)間</td>?? ??? ??? ?</tr>?? ??? ??? ?<%// ?? ??? ??? ??? ?BillService billService = new BillServiceImpl();?? ??? ??? ??? ?List<Bill> billList = billService.getBillList();// ?? ??? ??? ??? ?for(Bill bill : billList) {?? ??? ??? ??? ?request.setAttribute("billList", billList);?? ??? ??? ?%>?? ??? ??? ?<c:forEach items="${requestScope.billList }" var="bill">?? ??? ??? ??? ?<tr><!-- ?? ??? ??? ??? ??? ?<td><%=bill.getId()%></td> --><!-- ?? ??? ??? ??? ??? ?<td><%=bill.getProductName()%></td> --><!-- ?? ??? ??? ??? ??? ?<td><%=bill.getCounts() %></td> --><!-- ?? ??? ??? ??? ??? ?<td><%=bill.getBillMoney() %></td> --><!-- ?? ??? ??? ??? ??? ?<td><%=bill.getIsPay() %></td> --><!-- ?? ??? ??? ??? ??? ?<td><%=bill.getProductName() %></td> --><!-- ?? ??? ??? ??? ??? ?<td><%=bill.getProductDesc() %></td> --><!-- ?? ??? ??? ??? ??? ?<td><%=bill.getBillTime() %></td> -->?? ??? ??? ??? ??? ?<td>${bill.Id }</td>?? ??? ??? ??? ??? ?<td>${bill.productName }</td>?? ??? ??? ??? ??? ?<td>${bill.counts }</td>?? ??? ??? ??? ??? ?<td>${bill.billMoney }</td>?? ??? ??? ??? ??? ?<td>${bill.isPay }</td>?? ??? ??? ??? ??? ?<td>${bill.productName }</td>?? ??? ??? ??? ??? ?<td>${bill.productDesc }</td>?? ??? ??? ??? ??? ?<td>${bill.billTime }</td>?? ??? ??? ??? ?</tr>?? ??? ??? ?</c:forEach><!-- ?? ??? ??? ?<tr> --><!-- ?? ??? ??? ??? ?<td><%=bill.getId()%></td> --><!-- ?? ??? ??? ??? ?<td><%=bill.getProductName()%></td> --><!-- ?? ??? ??? ??? ?<td><%=bill.getCounts() %></td> --><!-- ?? ??? ??? ??? ?<td><%=bill.getBillMoney() %></td> --><!-- ?? ??? ??? ??? ?<td><%=bill.getIsPay() %></td> --><!-- ?? ??? ??? ??? ?<td><%=bill.getProductName() %></td> --><!-- ?? ??? ??? ??? ?<td><%=bill.getProductDesc() %></td> --><!-- ?? ??? ??? ??? ?<td><%=bill.getBillTime() %></td> --><!-- ?? ??? ??? ?</tr> --><!-- ?? ??? ??? ?<% --><!-- ?? ??? ??? ??? ?} --><!-- ?? ??? ??? ?%> -->?? ??? ?</table>?? ?</div></div></body></html>
查看完整描述

2 回答

?
慕大叔

TA貢獻(xiàn)75條經(jīng)驗(yàn) 獲得超103個(gè)贊

jsp頁面盡量少出現(xiàn)java代碼,后臺(tái)直接傳 一個(gè)list過來。

查看完整回答
反對(duì) 回復(fù) 2016-08-15
?
fenkapian

TA貢獻(xiàn)18條經(jīng)驗(yàn) 獲得超1個(gè)贊


foreach標(biāo)簽里用out標(biāo)簽輸出也不行,還是錯(cuò)的

查看完整回答
反對(duì) 回復(fù) 2016-08-14
  • 2 回答
  • 0 關(guān)注
  • 2267 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)