File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes please help me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Reply locked New topic

please help me

stalin vanama

Joined: Sep 15, 2005
Posts: 2
whilw i am compling the code i got this error.
code is

<%@ page import="java.util.*,*,javax.servlet.http.*,javax.servlet.*,java.sql.*,java.sql.ResultSet.*" session="true" %>


<html><head><title>Upadting Values</title></head>

<body bgcolor="#FCFCFO">

<b><a href="add.jsp" style="text-decoration:none">Add Account Details!</a>


<a href="val.jsp" style="text-decoration:none"> Display!</a>


<a href="login.jsp" style="text-decoration:none"> Logout!</a></b>





Connection con=null;


con = DriverManager.getConnection("Jdbc dbc:vsr","","");

Statement st = con.createStatement();

out.println("Connection Established <br>");

ResultSet rs = st.executeQuery("UPDATE accounts SET acountname = accountname,startdate = startdate,balance = balance,address = address WHERE accountno = accountno");

out.println("<b>Record Updated</b>");

System.out.println("Connection closed");

}catch(SQLException e)
out.println("SQLException: " + e.getMessage() + "<BR>");
while((e = e.getNextException()) != null)
out.println(e.getMessage() + "<BR>");

Dave Salter
Ranch Hand

Joined: Jul 20, 2005
Posts: 293

Hi, Welcome to JavaRanch.

Please don't make multiple posts about the same subject. If you need to edit a post, theres a button at the top of the submission for that allows you to do this.

I've made a reply to your post

here, hopefully that will help.

I agree. Here's the link:
subject: please help me
It's not a secret anymore!