I have created a form where the users can fill in their details. I would like to capture that data using MS access database and HTTP server via a servlet. Here is the servlet.
String insertTd = "insert into emp_table values('"+l_delegatename+"','"+l_coursename+"',\"testing\", 1, \"YES\")";
int count = stmt1.executeUpdate(insertTd);
stmt1.close();
if (count > 0)
{
toClient.println("<br><center>");
toClient.println("<font size=\"5\"><b>New User is created successfully</b/></font>");
toClient.println("</center>");
}
I'm pretty sure that needs to be a reference to the jdbc/odbc bridge and that you have to have a system data source defined for the Access db. I'd recommend, though, that you use a real database manager. Both HSQL and Cloudscape/Derby are pure Java and free.
Bookmarks