JSP Servlet Login Logout with Remember Me

Introduction This tutorial, jsp servlet login logout with remember me, will show you how to login to an application with remember me functionality. Sometimes we need to remember username and password for few days or months or years so that next time onwards a user can login without entering the username and password into the input fields. The username and…

PHP MySQL Login Logout with Remember Me

This tutorial will show you how to login to an application with remember me functionality. Sometimes you need to remember username and password for few days or years so that next time onward a user can login without entering the username and password into the input fields. The username and password fields get populated automatically from the cookie where the…

Conversion of Joda Date Time to SQL Timestamp and Vice Versa

Introduction This tutorial shows how you can convert joda date time to SQL timestamp or vice versa. Java’s standard date and time classes (mainly java.util.Date and java.util.Calendar) have limited functionality and have a number of design problems. The fact that many of constructors and methods of java.util.Date are deprecated. Joda Time has a better thought out API than what is…

Usage of Joda Date Time API

This tutorial shows how we can use joda date time API. Java’s standard date and time classes (mainly java.util.Date and java.util.Calendar) have limited functionality and have a number of design problems. The fact that many of constructors and methods of java.util.Date are deprecated. Joda Time has a better thought out API than what is available in Java’s date and time…

Get selected checkbox’s value using jQuery

This tutorial shows how we can get currently selected checkbox’s value using jQuery. We can easily use the power of jQuery to check which checkbox is selected using is(“:checked”) and get the selected checkbox’s value using $(‘[name=”checkbox name”]:checked’).val(). Here we will get the selected value when a checkbox is clicked, so jQuery’s click() function is used for capturing onclick event….

Cucumber Data Table – Convert a Three Column Table to a List

Introduction Here in this post you will see an example on Cucumber data table – convert a three column table to a list. Cucumber is a tool for running automated acceptance tests written in a behavior-driven development (BDD) style. Cucumber is written in the Ruby programming language. Cucumber projects are available for other platforms beyond Ruby. Cucumber works with Ruby,…

Cucumber Data Table – Convert a Two Column Table to a Map

Introduction In this post you will see an example on cucumber data table – convert a two column table to a Map. Cucumber is a tool for running automated acceptance tests written in a behavior-driven development (BDD) style. Cucumber is written in the Ruby programming language. Cucumber projects are available for other platforms beyond Ruby. Cucumber works with Ruby, Java,…

Convert List, Map to JSON in REST Response using Jersey

Introduction In this post we will see how to convert List, Map to JSON in REST Response using Jersey API. We will create three separate REST methods to convert List to JSOn, Map to JSON and List of Map to JSON string. We will annotate the REST resource class with @Path for having the base URI of the REST resources….

Cucumber Data Table – Convert One Column Table to a List

Introduction In this post you will see an example on cucumber data table – convert one column table to a list. Cucumber is a tool for running automated acceptance tests written in a behavior-driven development (BDD) style. Cucumber is written in the Ruby programming language. Cucumber projects are available for other platforms beyond Ruby. Cucumber works with Ruby, Java, .NET,…

How to concurrently execute tasks using Java in Spring

This tutorials will show you how we can concurrently execute different operations using Java utility class called java.util.concurrent.Executors in Spring framework. Spring supports XML as well as Programmatic configuration of beans but, here we will use XML based metadata configuration. If you already have an idea on how to create a maven project in Eclipse will be great otherwise I…