title: Crud operation using jtable and jquery plugin
body: <p>I  want to make a simple CRUD operation using jsp, servlet and database.I want to pass action from jsp to servlet to insert,update,delete data from database table.My code is</p>
  
  <pre><code>$(document).ready(function () {
  
  
          actions: {
              listAction: 'CRUDController?action=list'
              deleteAction: 'CRUDController?action=delete'
              updateAction: 'CRUDController?action=update'
              createAction: 'CRUDController?action= create'
          },
  </code></pre>
  
  <p>I want to pass the action string to CRUDController servlet and receive it using if else condition such as</p>
  
  <pre><code>    if (action.equals("list")) {
        Show employeelist}
  else if (action.equals("update")) {
        edit employeelist}
  else if (action.equals("create")) {
       insert data into employeelist}
  </code></pre>
  
  <p>But action is not passing to servlet and edit,delete,insert operation is not working.If i could pass the action strings i would've made the edit,delete,insert operation work. What should i do?
  I got the idea from here <a href="http://www.programming-free.com/2013/08/ajax-based-crud-operations-in-java-web.html" rel="nofollow">http://www.programming-free.com/2013/08/ajax-based-crud-operations-in-java-web.html</a>
  <a href="http://www.simplecodestuffs.com/ajax-based-crud-operations-in-jsp-and-servlet-using-jtable-jquery-plug-in/" rel="nofollow">http://www.simplecodestuffs.com/ajax-based-crud-operations-in-jsp-and-servlet-using-jtable-jquery-plug-in/</a></p>
  
  <p>But my action is not passing to the servlet</p>