程序:
String sql3="select SendTime,Title from board where ID=";
sql3=sql3+"(select Max(ID) from board where ForumID="+forumID+")";
ResultSet board2;
board2=display.query(sql3);
if(board2!=null)
{board2.next();
%>
<td width="236" align="center"> <%=board2.getString("Title")%>( <%=board2.getTime("SendTime")%>) </td>
运行后提示:
org.apache.jasper.JasperException: Exception in JSP: /main.jsp:91 88: if(board2!=null)
89: {board2.next();
90: %>
91: <td width="236" align="center"> <%=board2.getString("Title")%>( <%=board2.getTime("SendTime")%>) </td>
92: <%
93: board2.close();
94: }
是什么异常啊?不懂!
其中SendTime在数据库里是DateTime类型.
String sql3="select SendTime,Title from board where ID=";
sql3=sql3+"(select Max(ID) from board where ForumID="+forumID+")";
ResultSet board2;
board2=display.query(sql3);
if(board2!=null)
{board2.next();
%>
<td width="236" align="center"> <%=board2.getString("Title")%>( <%=board2.getTime("SendTime")%>) </td>
运行后提示:
org.apache.jasper.JasperException: Exception in JSP: /main.jsp:91 88: if(board2!=null)
89: {board2.next();
90: %>
91: <td width="236" align="center"> <%=board2.getString("Title")%>( <%=board2.getTime("SendTime")%>) </td>
92: <%
93: board2.close();
94: }
是什么异常啊?不懂!
其中SendTime在数据库里是DateTime类型.
的拼错了把!