
Dear sir, i'm in need of code and procedure to establish jdbc connectivity in jsp.

Here is a simple jsp code that accepts the values from user and insert them into the database using jdbc.
1)form.jsp:
<html> <form method="post" action="insert.jsp"> <table> <tr><td>Name:</td><td><input type="text" name="name"></td></tr> <tr><td>Address:</td><td><input type="text" name="address"></td></tr> <tr><td></td><td><input type="submit" value="Submit"></td></tr> </table> </form> </html>
2)insert.jsp:
<%@page import="java.sql.*"%>
<%
String name=request.getParameter("name");
String address=request.getParameter("address");
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/test", "root", "root" );
Statement st=con.createStatement();
int i=st.executeUpdate("insert into user(name,address) values('"+name+"','"+address+"')");
out.println("Data is inserted successfully");
%>
For more information, visit the following links:
http://www.roseindia.net/jsp/connect-jsp-mysql.shtml
http://www.roseindia.net/jsp/Accessingdatabase-fromJSP.shtml
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.