C:\Users\Greg\Documents\NetBeansProjects\abalon3\build\generated\src\org\apache\jsp\user2_jsp.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
代碼:
<%
String like=" ";
Vector<String> vcd = new Vector<String>();
Vector<String> vbo = new Vector<String>();
vcd=CheckUser.search_latest_cd();
int jc=vcd.size();
vbo=CheckUser.search_latest_books();
int jb=vbo.size();
int i=0;
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table border="1" cellspacing="10"
bgcolor=#99FFFF>
<tr>
<th>Author</th>
<th>Title</th>
<th>Summary</th>
<th>Genre</th>
<th>year</th>
<th>Price</th>
<th>ID</th>
</tr>
<%if(vbo.size()>0){for(i=jb;i<jb;i-=7){%>
<tr><td><%out.print(vbo.get(i-6));%></td><td><%out.print(vbo.get(i-5));%></td>
<td><%out.print(vbo.get(i-4));%></td><td><%out.print(vbo.get(i-3));%></td>
<td><%out.print(vbo.get(i-2));%></td><td><%out.print(vbo.get(i-1));%></td>
<td><%out.print(vbo.get(i));}}%></td></tr>
</table>
誰能告訴我在哪裏的問題?
哦,我的眼睛。 Scriptlet代碼不應該在世界上佔有一席之地。 – duffymo 2011-02-16 00:58:42
請閱讀最新的教程/書籍。這是編寫JSP/HTML的90年代的方法。 – BalusC 2011-02-16 13:22:37