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

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定

為什么我顯示商品詳情頁里面是空的??

<%@page?import="entity.items"%>
<%@page?import="dao.itemsDAO"%>
<%@?page?language="java"?import="java.util.*"?contentType="text/html;?charset=utf-8"?%>
<%
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>商品詳情頁</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-left:?30px;
??????????margin-right:30px;
??????????margin-top:?5px;
??????????margin-bottom:?5px;
???????}
???????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?height="750"?width="60"?cellpadding="0"?cellspacing="0"?border="0"?>
??????????????????????<tr>
??????????????????????<%
??????????????????????????itemsDAO?itemdao?=?new?itemsDAO();
??????????????????????????items?item?=?itemdao.getitemsById(Integer.parseInt(request.getParameter("id")));?
??????????????????????????????if(item!=null)
??????????????????????????????????{
???????????????????????%>
??????????????????????<td?width="70%"?valign="top">
??????????????????????????<table>
??????????????????????????????<tr>
??????????????????????????????????<td?rowspan="4"><img?src="images/<%=item.getPicture()?%>"??width="200"?height="160"?/>?</td>
??????????????????????????????</tr>
??????????????????????????????<tr>
??????????????????????????????????<td><B><%=item.getName()?%></B></td>
??????????????????????????????</tr>
??????????????????????????????<tr>
??????????????????????????????????<td>地址:<%=item.getCity()?%></td>
??????????????????????????????</tr>
??????????????????????????????<tr>
??????????????????????????????????<td>價(jià)格:<%=item.getPrice()?%></td>
??????????????????????????????</tr>
??????????????????????????</table>
??????????????????????</td>
??????????????????????????<%
??????????????????????????????}
???????????????????????????%>
??????????????????????</tr>
??????????????????</table>
??????????????</center>
??</body>
</html>


正在回答

2 回答

請問我也是取不到值,怎么回事,能否告知一下。

0 回復(fù) 有任何疑惑可以回復(fù)我~

items?item?=?itemdao.getitemsById(Integer.parseInt(request.getParameter("id")));?

確定id的值是存在request里了嗎

最好貼一下其他代碼

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

奮斗的小牧童 提問者

這個(gè)找到了,是itemsDAO里的返回值多寫了個(gè)return NULL
2015-05-02 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

為什么我顯示商品詳情頁里面是空的??

我要回答 關(guān)注問題
微信客服

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

幫助反饋 APP下載

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

公眾號

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