{"id":17076,"date":"2013-09-09T01:00:53","date_gmt":"2013-09-08T22:00:53","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=17076"},"modified":"2013-09-08T22:13:19","modified_gmt":"2013-09-08T19:13:19","slug":"how-to-create-jquery-datatable-using-json-and-servlet","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html","title":{"rendered":"How to create JQuery DataTable using JSON and servlet"},"content":{"rendered":"<p>In this article I\u2019ll introduce the basic coding that require to create JQuery DataTable using JSON passed by simple servlet. DataTable is very powerful JQuery based grid with advance features which can be build in short span of time with customize features.<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n<h2>Installation<\/h2>\n<ol>\n<li>Download Latest <a title=\"DataTable\" href=\"http:\/\/datatables.net\/download\/\">JQuery DataTable download<\/a><\/li>\n<li>Above download will provide two JQuery plugin jquery.js and queryTables.js\n<pre class=\" brush:java\">&lt;script type=\"text\/javascript\"\r\ncharset=\"utf-8\" src=\"\/DataTables\/media\/js\/jquery.js\"&gt;&lt;\/script&gt;\r\n&lt;script type=\"text\/javascript\"\r\ncharset=\"utf-8\" src=\"\/DataTables\/media\/js\/jquery.dataTables.js\"&gt;&lt;\/script&gt;<\/pre>\n<\/li>\n<li>Default stylesheet which shipped with latest DataTable download package\n<pre class=\" brush:java\">&lt;style type=\"text\/css\" title=\"currentStyle\"&gt;\r\n @import \"..\/resources\/css\/demo_table.css\";\r\n&lt;\/style&gt;<\/pre>\n<\/ol>\n<p><strong>Note:<em>You can download full source code from <a title=\"ExampleJQueryDataTableJSON\" href=\"https:\/\/github.com\/nitins30\/ExampleJQueryDataTableJSON\">Github link<\/a><\/em><\/strong><\/li>\n<h2>Creating the DataTable<\/h2>\n<p>We can write below code to create the basic DataTable with data<\/p>\n<h4>feedSummary.jsp<\/h4>\n<pre class=\" brush:java\">&lt;script type=\"text\/javascript\" charset=\"utf-8\"&gt;\r\n$(document).ready(function() {\r\nvar oTable = $('#tableId').dataTable( {\r\n\"processing\": true,\r\n\"ajax\": {\r\n\"url\": \"\/FeedSummaryUpdate\/FeedServlet\",\r\n\"dataSrc\": \"demo\",\r\n\"type\": \"GET\"\r\n}\r\n} );\r\n} );\r\n&lt;\/script&gt;<\/pre>\n<p>$(document).ready will ready to execute the javascript and var oTable = $(\u2018#tableId\u2019).dataTable says that write DataTable on tableId place.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>DataTables will adding sorting, filtering, paging and information to your table by default, providing the end user of your web-site with the ability to control the display of the table and find the information that they want from it as quickly as possible.<\/p>\n<p>The pointer tableId and column name will be defined in table tag as below<\/p>\n<h4>feedSummary.jsp<\/h4>\n<pre class=\" brush:java\">&lt;table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"\r\nid=\"tableId\"&gt;\r\n&lt;thead&gt;\r\n&lt;tr&gt;\r\n&lt;th width=\"10%\"&gt;First Name&lt;\/th&gt;\r\n&lt;th width=\"10%\"&gt;Last Name&lt;\/th&gt;\r\n&lt;th width=\"10%\"&gt;Address 1&lt;\/th&gt;\r\n&lt;th width=\"10%\"&gt;Address 2&lt;\/th&gt;\r\n&lt;\/tr&gt;\r\n&lt;\/thead&gt;\r\n&lt;\/table&gt;<\/pre>\n<p>Above DataTable code invoke FeedServlet which will return JSON string as defined below<\/p>\n<h4>FeedServlet.java<\/h4>\n<pre class=\" brush:java\">protected void doPost(HttpServletRequest request,\r\nHttpServletResponse response) throws ServletException, IOException {\r\nPrintWriter out = response.getWriter();\r\nString json = \"{ \\\"demo\\\":[[\\\"First Name\\\",\\\"Last Name\\\",\"+\r\n+\\\"Address1\\\",\\\"Address2\\\"],[\\\"First Name\\\",\\\"Last Name\\\",\\\"Address1\\\",\\\"Address2\\\"]]}\";\r\nout.println(json);\r\n}<\/pre>\n<p>Now either we can use servlet annotation or web.xml as below to register above FeedServlet<\/p>\n<h4>Web.xml<\/h4>\n<pre class=\" brush:java\">&lt;servlet&gt;\r\n&lt;description&gt;&lt;\/description&gt;\r\n&lt;display-name&gt;FeedServlet&lt;\/display-name&gt;\r\n&lt;servlet-name&gt;FeedServlet&lt;\/servlet-name&gt;\r\n&lt;servlet-class&gt;FeedServlet&lt;\/servlet-class&gt;\r\n&lt;\/servlet&gt;\r\n&lt;servlet-mapping&gt;\r\n&lt;servlet-name&gt;FeedServlet&lt;\/servlet-name&gt;\r\n&lt;url-pattern&gt;\/FeedServlet&lt;\/url-pattern&gt;\r\n&lt;\/servlet-mapping&gt;<\/pre>\n<h2>Running<\/h2>\n<p>Incorporate the above point and deploy with server to view the result as follows: <a href=\"http:\/\/localhost:8080\/ExampleDataTableJSON\/feedSummary.jsp\" rel=\"nofollow\">http:\/\/localhost:8080\/ExampleDataTableJSON\/feedSummary.jsp<\/a><\/p>\n<h2>JQuery DataTable Image<\/h2>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/09\/jquery-datatabl.png\"><img decoding=\"async\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/09\/jquery-datatabl-300x47.png\" alt=\"jquery-datatabl\" width=\"300\" height=\"47\" class=\"aligncenter size-medium wp-image-17141\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/09\/jquery-datatabl-300x47.png 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/09\/jquery-datatabl.png 809w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>Conclusion<\/h2>\n<p>You can download full source code from <a title=\"ExampleJQueryDataTableJSON\" href=\"https:\/\/github.com\/nitins30\/ExampleJQueryDataTableJSON\">Github link<\/a> and most welcome to fork or update the same.<\/p>\n<p><strong>Resources: <\/strong><\/p>\n<ul>\n<li><a href=\"http:\/\/datatables.net\/examples\/\" rel=\"nofollow\">http:\/\/datatables.net\/examples\/<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<div style=\"border: 1px solid #D8D8D8; background: #FAFAFA; width: 100%; padding-left: 5px;\"><b><i>Reference: <\/i><\/b><a href=\"http:\/\/techmytalk.com\/2013\/08\/24\/how-to-create-jquery-data-table-using-json-pass-by-servlet\/\">How to create JQuery DataTable using JSON and servlet<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/jcg\">JCG partner<\/a> Nitin Kumar at the <a href=\"http:\/\/techmytalk.com\/\">Tech My Talk<\/a> blog.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this article I\u2019ll introduce the basic coding that require to create JQuery DataTable using JSON passed by simple servlet. DataTable is very powerful JQuery based grid with advance features which can be build in short span of time with customize features. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Installation Download Latest JQuery DataTable download Above &hellip;<\/p>\n","protected":false},"author":376,"featured_media":175,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[209,69],"class_list":["post-17076","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-jquery","tag-json"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to create JQuery DataTable using JSON and servlet<\/title>\n<meta name=\"description\" content=\"In this article I\u2019ll introduce the basic coding that require to create JQuery DataTable using JSON passed by simple servlet. DataTable is very powerful\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create JQuery DataTable using JSON and servlet\" \/>\n<meta property=\"og:description\" content=\"In this article I\u2019ll introduce the basic coding that require to create JQuery DataTable using JSON passed by simple servlet. DataTable is very powerful\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2013-09-08T22:00:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/json-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nitin Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nitin Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/09\\\/how-to-create-jquery-datatable-using-json-and-servlet.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/09\\\/how-to-create-jquery-datatable-using-json-and-servlet.html\"},\"author\":{\"name\":\"Nitin Kumar\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/cb35bb44ef39551d1431b17578ad43c5\"},\"headline\":\"How to create JQuery DataTable using JSON and servlet\",\"datePublished\":\"2013-09-08T22:00:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/09\\\/how-to-create-jquery-datatable-using-json-and-servlet.html\"},\"wordCount\":294,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/09\\\/how-to-create-jquery-datatable-using-json-and-servlet.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/json-logo.jpg\",\"keywords\":[\"jQuery\",\"JSON\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/09\\\/how-to-create-jquery-datatable-using-json-and-servlet.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/09\\\/how-to-create-jquery-datatable-using-json-and-servlet.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/09\\\/how-to-create-jquery-datatable-using-json-and-servlet.html\",\"name\":\"How to create JQuery DataTable using JSON and servlet\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/09\\\/how-to-create-jquery-datatable-using-json-and-servlet.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/09\\\/how-to-create-jquery-datatable-using-json-and-servlet.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/json-logo.jpg\",\"datePublished\":\"2013-09-08T22:00:53+00:00\",\"description\":\"In this article I\u2019ll introduce the basic coding that require to create JQuery DataTable using JSON passed by simple servlet. DataTable is very powerful\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/09\\\/how-to-create-jquery-datatable-using-json-and-servlet.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/09\\\/how-to-create-jquery-datatable-using-json-and-servlet.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/09\\\/how-to-create-jquery-datatable-using-json-and-servlet.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/json-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/json-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/09\\\/how-to-create-jquery-datatable-using-json-and-servlet.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to create JQuery DataTable using JSON and servlet\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/cb35bb44ef39551d1431b17578ad43c5\",\"name\":\"Nitin Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/778f8081dcaf52f8fe5207a5bd478e9a454a19bc8f8e0fd6935ccc282b4ea225?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/778f8081dcaf52f8fe5207a5bd478e9a454a19bc8f8e0fd6935ccc282b4ea225?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/778f8081dcaf52f8fe5207a5bd478e9a454a19bc8f8e0fd6935ccc282b4ea225?s=96&d=mm&r=g\",\"caption\":\"Nitin Kumar\"},\"description\":\"Nitin Kumar works as a Software Architect , predominately focus on Agile, TDD, Service Oriented Architecture, Grails and JEE. Besides working in software development, He writes technical articles and watches and studies new technologies\",\"sameAs\":[\"http:\\\/\\\/techmytalk.wordpress.com\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/nitin-kumar\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create JQuery DataTable using JSON and servlet","description":"In this article I\u2019ll introduce the basic coding that require to create JQuery DataTable using JSON passed by simple servlet. DataTable is very powerful","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html","og_locale":"en_US","og_type":"article","og_title":"How to create JQuery DataTable using JSON and servlet","og_description":"In this article I\u2019ll introduce the basic coding that require to create JQuery DataTable using JSON passed by simple servlet. DataTable is very powerful","og_url":"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2013-09-08T22:00:53+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/json-logo.jpg","type":"image\/jpeg"}],"author":"Nitin Kumar","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Nitin Kumar","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html"},"author":{"name":"Nitin Kumar","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/cb35bb44ef39551d1431b17578ad43c5"},"headline":"How to create JQuery DataTable using JSON and servlet","datePublished":"2013-09-08T22:00:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html"},"wordCount":294,"commentCount":1,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/json-logo.jpg","keywords":["jQuery","JSON"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html","url":"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html","name":"How to create JQuery DataTable using JSON and servlet","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/json-logo.jpg","datePublished":"2013-09-08T22:00:53+00:00","description":"In this article I\u2019ll introduce the basic coding that require to create JQuery DataTable using JSON passed by simple servlet. DataTable is very powerful","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/json-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/json-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2013\/09\/how-to-create-jquery-datatable-using-json-and-servlet.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"How to create JQuery DataTable using JSON and servlet"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/cb35bb44ef39551d1431b17578ad43c5","name":"Nitin Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/778f8081dcaf52f8fe5207a5bd478e9a454a19bc8f8e0fd6935ccc282b4ea225?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/778f8081dcaf52f8fe5207a5bd478e9a454a19bc8f8e0fd6935ccc282b4ea225?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/778f8081dcaf52f8fe5207a5bd478e9a454a19bc8f8e0fd6935ccc282b4ea225?s=96&d=mm&r=g","caption":"Nitin Kumar"},"description":"Nitin Kumar works as a Software Architect , predominately focus on Agile, TDD, Service Oriented Architecture, Grails and JEE. Besides working in software development, He writes technical articles and watches and studies new technologies","sameAs":["http:\/\/techmytalk.wordpress.com\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/nitin-kumar"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/17076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/376"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=17076"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/17076\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/175"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=17076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=17076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=17076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}