Hi,
I'm using a CachedRowset with an MS Access DB. I wrote a little JSP file
but I receive an error.
I think I forgot a command something with the connection. Can somebody help
me?
java.sql.SQLException: acceptChanges Failed
JSP file
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<%@ page import="beanDatabank" %>
<jsp:useBean id="bdb" class="beanDatabank" />
<%
String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
String url = "jdbc:odbc:db1";
String id = (String)session.getAttribute("id");
Class.forName(driver);
setUrl(url);
setTableName(id);
setCommand("select * from " + id);
execute();
first();
bdb.updateString(1, "hallo");
bdb.updateRow();
bdb.acceptChanges();
%>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets