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

為了賬號安全,請及時綁定郵箱和手機立即綁定

點圖片之后出現(xiàn)500錯誤

<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%@ page import="entity.Items"%>
<%@ page import="dao.ItemsDAO"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
? <head>
??? <base href="<%=basePath%>">
???
??? <title>My JSP 'index.jsp' starting page</title>
?<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 rel="stylesheet" type="text/css" href="styles.css">
?-->
?<style type="text/css">
??? div{
?????? float:left;
?????? margin: 10px;
??? }
??? div dd{
?????? margin:0px;
?????? font-size:10pt;
??? }
??? div dd.dd_name
??? {
?????? color:blue;
??? }
??? div dd.dd_city
??? {
?????? color:#000;
??? }
?</style>
? </head>
?
? <body>
??? <h1>商品展示</h1>
??? <hr>

??? <center>
??? <table width="750" height="60" cellpadding="0" cellspacing="0" border="0">
????? <tr>
??????? <td>
?????????
????????? <!-- 商品循環(huán)開始 -->
?????????? <%
????????????? ItemsDAO itemsDao = new ItemsDAO();
?????????????? ArrayList<Items> list = itemsDao.getAllItems();
?????????????? if(list!=null&&list.size()>0)
?????????????? {
??????????????? for(int i=0;i<list.size();i++)
??????????????? {
?????????????????? Items item = list.get(i);
?????????? %>??
????????? <div>
???????????? <dl>
?????????????? <dt>
???????????????? <a href="details.jsp?id=<%=item.getId()%>"><img src="images/<%=item.getPicture()%>" width="120" height="90" border="1"/></a>
?????????????? </dt>
?????????????? <dd class="dd_name"><%=item.getName() %></dd>
?????????????? <dd class="dd_city">產(chǎn)地:<%=item.getCity() %>&nbsp;&nbsp;價格:¥ <%=item.getPrice() %></dd>
???????????? </dl>
????????? </div>
????????? <!-- 商品循環(huán)結束 -->
???????
????????? <%
?????????????????? }
????????????? }
????????? %>
??????? </td>
????? </tr>
??? </table>
??? </center>
? </body>
</html>

https://img1.sycdn.imooc.com//5b18941e0001580311560772.jpg

正在回答

3 回答

改成

list+=request.getParameter("id")+"#";
//如果瀏覽記錄超過1000條,清零.
String[]?arr?=?list.split("#");

另外itemdao里面的,也改成#

這個報錯就沒了


3 回復 有任何疑惑可以回復我~
#1

qq_細則靈_0

已經(jīng)解決,這是什么原因那, ,是轉義符號嗎?
2018-07-10 回復 有任何疑惑可以回復我~
#2

藍白空

同問原因
2018-07-25 回復 有任何疑惑可以回復我~

你的項目里沒有圖片

0 回復 有任何疑惑可以回復我~

都提示問題了details.jsp? ?第106 行有問題? 多看幾遍代碼

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
JAVA遇見HTML——JSP篇
  • 參與學習       248277    人
  • 解答問題       3198    個

Java Web入門級教程JSP,帶你輕松的學習JSP基礎知識

進入課程

點圖片之后出現(xiàn)500錯誤

我要回答 關注問題
微信客服

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號