
Hi sir... I am not getting how can i send the multiple input text box values in to an jsp file with additional values to store those values in to an database table.
Please help me...... looking forward to hear from you...

Hi Friend,
Try the following code:
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("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:student");
Statement st=con.createStatement();
int i=st.executeUpdate("insert into user(name,address) values('"+name+"','"+address+"')");
out.println("Data is inserted successfully");
%>
Thanks
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.