hi shashi ,
try the following.
i hope it may help you..
cheers :)
try {
String sql="insert into your_table_name col1,col2,col3... values
(?,?,?....)";
String url="url of your database (something like : jdbc:odbc:db1)";
Connection con=getConnection(url);
PreparedStatement pstmt= con.prepareStatement(sql);
pstmt.setString(1, subject);// for string variables
pstmt.setInt(2, message); // for integer "
pstmt.setDate(3,time); // for date "
pstmt.executeUpdate();
}
catch (......
_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html