試圖執行serachpage.jsp,它可以在搜索id的基礎上搜索數據庫中的數據。基本上我在select語句後得到一個錯誤。無法在jsp中執行搜索頁面
代碼:
<%
try {
String value = request.getParameter("Issue_ID");
int Issue_ID=Integer.parseInt(value);
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/report_tracking","root", "root");
Statement st = conn.createStatement();
ResultSet rs = st.executeQuery("select * from issue_creating where Issue_ID='"+Issue_ID+"'");
if(rs.next()) {
rs.getString("Problem_Submit");
rs.getString("Problem_Submit");
rs.getString("Problem_Descr");
}
%>
錯誤:
An error occurred at line: [108] in the generated java file: [D:\mohit\apache-tomcat-7.0.37\work\Catalina\localhost_\org\apache\jsp\serachisue_jsp.java]
Syntax error, insert "Finally" to complete TryStatement
An error occurred at line: [109] in the generated java file: [D:\mohit\apache-tomcat-7.0.37\work\Catalina\localhost_\org\apache\jsp\serachisue_jsp.java]
Syntax error, insert "}" to complete ClassBody
請把它當作迫切要求,如果有人可以幫助我作爲最早爲可能我會非常感謝他/她 – 2013-04-08 04:49:31
你可以添加堆棧跟蹤嗎? – shola 2013-04-08 05:13:53
@shola我沒有任何堆棧跟蹤將只提供catalina日誌,因爲這個本地桌面應用程序。 – 2013-04-08 05:21:35