fbpx
Pages Navigation Menu

Coding is much easier than you think

Ajax in Java

Advertisements

Pagination in Servlet and JSP using jQuery jTable plugin

Posted by on Sep 30, 2014 in Ajax, J2EE, jQuery, jTable, Servlet | 8 comments

    This is the 3rd article on jQuery jTable plugin that describes on how to implement pagination feature to do server side paging and here I have not explained about how to setup jTable plugin in java web application. So If you have not read my previous articles “Setting up JQuery jTable plugin in Java web application” and “Ajax based curd operation in Java web application using JQuery jTables plugin”, I will recommend that you read that article first because first one explains how you can integrate the...

read more

jQuery form validation using jQuery Validation plugin

Posted by on Sep 29, 2014 in Ajax, jQuery | 2 comments

    This article discusses client-side validation using jQuery’s validation plugin. This jQuery plugin has a bunch of standard validation methods such as a required field, valid email or URL, minimum and maximum lengths for a field, etc. In addition to that you can customize the look and feel of the error messages and their placement.   Library required jQuery Library jQuery Validation Plugin Let us start with a simple example.   Jsp   <!DOCTYPE HTML> <html> <head> <script...

read more

Autocomplete in Struts 2 using Jquery

Posted by on Sep 27, 2014 in Ajax, jQuery, Struts-2 | 9 comments

  I have already written a detailed post on Autocompleter Textbox & dropdown in Struts 2 using struts2-dojo-plugin.jar. In this post, I am going to describe how to implement Ajax based autocomplete in Struts 2 web application using jQuery plugin. jQuery Autcomplete is part of the jQuery UI library which allows converting a normal textbox into an autocompleter textbox by providing a data source for the autocompleter values.     Here when user types a character in text box, jQuery will fire an ajax request using autocomplete...

read more

CRUD Operations in Struts 2 using jTable jQuery plugin via Ajax

Posted by on Sep 20, 2014 in Ajax, jQuery, Struts-2 | 69 comments

    In the previous article “Setting up jQuery jTable plugin with Struts 2 framework” I have explained about how to setup jTable plugin in struts 2 application. This article describes on how to implement “Ajax based curd operation in Struts 2 using the JQuery jTable plugin, If you have not read the previous articles “Setting up jQuery jTable plugin with Struts 2 framework” I will recommend that you read that article first because it explains what jTable plugin is and how you can integrate it in Struts 2...

read more

Setup and Load Data in jQGrid using Servlets and JSP

Posted by on Aug 27, 2014 in Ajax, jQuery | 18 comments

JqGrid is an Ajax-enabled JavaScript control that provides solutions for representing and manipulating grid data on the web. Since the grid loads data at client side via Ajax call-backs, so it can be integrated with any server-side technology, including PHP, ASP and Java. JqGrid uses a jQuery Java Script Library and is written as plugin for that package.   Library required   JqGrid library Jquery UI theme google-gson-2.2.4.jar   Now to start with demonstration of above topic, let us Create a Dynamic Web Project in Eclipse,...

read more

CRUD Operations in Java Web Applications using jTable jQuery plugin via Ajax

Posted by on Aug 24, 2014 in Ajax, J2EE, jQuery, jTable, Servlet | 39 comments

    In the previous article “Setting up JQuery jTable plugin in Java Web Applications” I have explained how to setup jTable plugin in java web application. This article describes on how to implement “Ajax based curd operation in Java Web Applications using the JQuery jTable plugin and it will not explain how to setup jTable plugin in java web application. So If you have not read the previous articles “Setting up JQuery jTable plugin in Java Web Applications I will recommend that you read that article first...

read more

GridView in Struts2 using jQuery DataTable via Ajax

Posted by on May 31, 2014 in Ajax, jQuery, Struts-2 | 17 comments

  In this post, I am going to explain on how to use DataTable plugin to display data in Gridview format with pagination feature in Struts 2 web application.     DataTable is a jQuery plugin which adds a lot of functionality to plain HTML tables, such as filtering, paging sorting, changing page length, server side processing etc.   Library struts2-json-plugin-x.x.x.jar DataTable Plugin OpenCSV(Optional – I am using this to deal with a csv file as data source instead of database to keep it simple) jQuery UI themes In...

read more

Ajax File Upload with Progress Bar using jQuery in Java web application

Posted by on May 29, 2014 in Ajax, J2EE, jQuery, Servlet | 11 comments

In my previous article we learnt on how to implement AJAX Style file upload in a java web application. In this post we shall learn on how to create AJAX file uploading system with progress bar which shows upload progress in percentage (%) using jQuery in java web application. I have used jQuery Form plugin for this purpose. This plugin is easy to use and supports iframe file transportation.     Libraries required for the setup jQuery.form.js jquery Apache Commons FileUpload commons-io.jar   Folder structure Now Create a...

read more

Tab Style Login and Signup example using jQuery in Java web application

Posted by on Feb 16, 2014 in Ajax, J2EE, jQuery, Servlet | 3 comments

    In this post, I am going to describe on how to design tab style login and registration panel using jquery ui tabs in java web applications. Here I’m using oracle database as a back end for registering and authenticating users.   Libraries required for the setup, Servlet-api.jar jQuery jQuery UI Ojdbc.jar   Now create a dynamic web project in eclipse and create two folders under WebContent and name it as ‘js’ and ‘css’. And add the downloaded jQuery javascript and css files to it. The final...

read more

Autocomplete in java web application using Jquery and JSON

Posted by on Jan 5, 2014 in Ajax, J2EE, jQuery, Servlet | 5 comments

  This article will describe how to implement jQuery Autocomplete in java web application. jQuery Autcomplete is part of the jQuery UI library which allows converting a normal textbox into an autocompleter textbox by providing a data source for the autocompleter values.     Here when user types a character in text box ,jQuery will fire an ajax request using autocomplete plugin to the controller, this controller(Servlet) in turn call the dao class which connects to the database and returns the required data back as an array...

read more
%d bloggers like this: