how to update many tables using the same code
<%@ page language ="java"import ="java.sql.*" %>
<%@ pageimport ="java.sql.*" %>
<%@ pageimport ="java.text.*" %>
<%
String custname1=request.getParameter("custname");
session.setAttribute("custname",custname1);
String custtin1=request.getParameter("custtin");
session.setAttribute("custtin",custtin1);
%>
<%
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn;
conn=DriverManager.getConnection("jdbc:odbc:loginval");
Statement stat=conn.createStatement();
String stmt="insert into custdetails values('"+custname1+"','"+custtin1+"')";
stat.executeUpdate(stmt);
stat.close();
conn.close();
%>
<jsp:forward page ="success.html"/>
<%
}
catch(Exception e)
{
%>
<jsp:forward page ="tinerror.jsp"/>
<%
}
%>
this is my code, now this code will be used by many users to update their corresponding tables. so my problem is based on the username i need to change the table name in the insert query, for example if the username is sai, then the table name has to be saicustdetails and if the user name is ram then the table name in the query has to be ramcustdetails. and so on.
please help

