我使用eclipse indigo(javaEE)和apache tomcat 7.0.23。 jsp代碼eclipse,jsp和tomcat以及mysql中的資源不可用錯誤
pstatement = connection.prepareStatement(queryString);
pstatement.setString(1, name);
pstatement.setString(2, city);
pstatement.setString(3, phone);
updateQuery = pstatement.executeUpdate();
給出的錯誤爲the requested resource jsp1/prepared_statement_query.jsp is not available
。
簡單的.jsp
文件正確執行並顯示成功的連接,但不能插入數據庫。我不知道數據庫連接或服務器運行是否有問題?
對不起,我添加了代碼的標籤。 – Priyanka 2012-01-09 06:00:54
你是否在頁面中包含了一些其他的JSP'jsp1/prepared_statement_query.jsp'? – Nishant 2012-01-09 06:06:30
no.its唯一的my_try_conn.jsp文件,並且錯誤是404 – Priyanka 2012-01-09 07:06:24