I´m trying to insert a record to table, which i choose in html form…Can I use something like this in jsp?
String queryString = "INSERT INTO ? (login,password,full_name,ulevel) VALUES (?, ?, ?, ?)";
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Main Answer
If you want to use JDBC, which I agree may be what it is, you may try this:
You can refer to this link on how to use it. Java Oracle got better examples: http://docs.oracle.com/javase/tutorial/jdbc/basics/prepared.html
Previous Answer:
Use String format
Java example:
http://docs.oracle.com/javase/tutorial/java/data/strings.html – Check bottom section.
Apply it for JSP.