0

I want to insert the html table data rows into database using JSP.Please tell me how to do it using arrays or if any other methods please tell me.

1
  • 1
    Welcome to Stackoverflow! Have you gone through basic tutorials for html-form elements and other html elements, if yes than you would have already known that only through html form-elements like input, textarea, checkbox etc you can send data to server and not through <table>. Also it would be nice to know if you have also gone through basic tutorials for jsp & servlets and how they interact with database. Now lastly please tell us what you have actually tried and where you are stuck, so that we can help you move forward. Commented Oct 10, 2014 at 6:07

1 Answer 1

0

You can pass the array values from the jsp , and in servlet you can get them through ,

String[] arrayVar= request.getParameterValues("YourJspArrayAttribute");

you can find some examples in so ,

  1. inserting java array values into mysql by using prepared statement

  2. Servlets/JSP and multiple inserts to a database

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.