Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
    Bookmark Topic Watch Topic
  • New Topic

please help me

stalin vanama
Posts: 2
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 293
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.

    Bookmark Topic Watch Topic
  • New Topic