亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

jsp中Java語句內的表格不顯示

jsp中Java語句內的表格不顯示

慕容7724642 2016-09-08 15:13:53
<body> 在線用戶表 <table?width="403"?border="1"??bordercolor="#000000"> ??<tr> ????<th?width="52"?scope="col">序號</th> ????<th?width="77"?height="30"?scope="col">用戶名</th> ????<th?width="73"?scope="col">IP地址</th> ????<th?width="76"?scope="col">訪問時間</th> ????<th?width="103"?scope="col">來自得url</th> ??</tr> <%? ???@SuppressWarnings("unchecked") ????HashMap<String,Visitor>?map=(HashMap<String,Visitor>)application.getAttribute("ONLINE"); ????Set<String>?ids=map.keySet(); ????Iterator<String>?it=ids.iterator(); ????int?i=3; ????while(it.hasNext()) ????{ ???????String?id=it.next(); ???????Visitor?v=map.get(id); ??????i++; ????? ??%> ?????<tr> ????<td><%?out.print(i);?%>002</td> ????<td><%??out.print(v.getIp());%></td> ????<td><%?%></td> ????<td><%?%></td> ????<td><%?%></td> ?????</tr> ????<tr> ????<td>0</td> ????<td>1</td> ????<td>2</td> ????<td>3</td> ????<td>4</td> ?????</tr> ??<%? ??} ?? ??%> ??? ?? </table> </body> </html>只顯示第一行表格 ,第二第三行不顯示。
查看完整描述

2 回答

?
weenhall

TA貢獻121條經驗 獲得超57個贊

那說明沒取到值,用f12在瀏覽器調試一下

查看完整回答
反對 回復 2016-09-08
?
han_leirong

TA貢獻1條經驗 獲得超0個贊

跟在平常的jsp中一樣,獲取到table這個元素,在控制它只顯示第一個(用JavaScript,或者jQuery。后者簡單點)。

查看完整回答
反對 回復 2016-09-08
  • 2 回答
  • 0 關注
  • 1686 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號