I need to create, edit and delete the data in mysql. I made the servlet program for CRUD operation. I want build the webpage which displays the Table and buttons for CRUD. How should i start up write my JavaScript.
Share
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.
You should get your JavaScript to talk to your servlet that is performing the CRUD actions. So your button “Create” calls a create method in your servlet. A easy way to do this is to use the Direct Web Remoting (DWR) JavaScript library – check their tutorial.