views:

52

answers:

2

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.

+1  A: 

You should connect your javascript with a Web Service.

Victor
+1  A: 

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.