Introduction Here I will show you how to fix the issue java.security.cert.CertificateException: No name matching localhost found. To fix it, add a javax.net.ssl.HostnameVerifier() method to override the existing hostname verifier.

Posted in Security SOAP

java.security.cert.CertificateException: No name matching localhost found

Introduction This tutorial shows an example how to add input fields to form dynamically using jQuery. Input field types may be text, textarea or file to the form. I also have added remove button next to the added input field to remove the field if you think later that do not need it. For this…

Posted in HTML jQuery

Add Input Fields To Form Dynamically Using jQuery

Introduction I will show you in this example, how to display elements one by one from an array using jQuery. Let’s say you have a button on the web page and on clicking the button the values from array will be displayed one by one. There are two examples below, one simply access the values…

Posted in JavaScript

Display elements one by one from an array using jQuery

Table of Contents Introduction Prerequisites Limit Checkbox Selection Using JavaScript Using Form HTML JavaScript Using Div HTML JavaScript Testing Checkbox Selection Limit Using Form Using Div Source Code Introduction This tutorial shows how to limit number of checkbox selections using JavaScript in a group of checkboxes. Suppose you have a group of checkboxes in a…

Posted in JavaScript

Limit Number Of Checkbox Selections Using JavaScript

AJAX – Asynchronous JavaScript And XML This tutorial shows an example on AJAX using JavaScript. AJAX is an acronym that stands for Asynchronous JavaScript And XML. Therefore it is not a technology, but a technique which is implemented using JavaScript. Here I will show you how to use AJAX technique in simple way without using…

Posted in AJAX JavaScript

AJAX Technique Example Using JavaScript

Introduction This tutorial shows how to implement a JavaScript function which takes multiple ids and returns multiple elements. document.getElementById() only supports one name at a time and returns a single node but not multiple nodes or an array of nodes.

Posted in JavaScript

JavaScript function which takes multiple ids and returns multiple elements

Path For Nested Categories This tutorial shows how to find the entire or full path from root to child for nested categories and subcategories. Let’s say you have a table in database server in such a way that it contains an unlimited level of categories and you have another column in the same table which…

Posted in MySQL

Find Full Path For Nested Categories In MySQL

Zero-Fill Auto-Incremented Id This tutorial shows how to generate zero-fill auto-incremented unique identifier in MySQL. Sometimes you may need to generate such keys which are used in some part of the application for business logic. Below example shows how to generate zero-fill auto-incremented id in MySQL table.

Posted in MySQL

Generate Zero-Fill Auto-Incremented Id In MySQL

This tutorial shows how to select items randomly from each category in MySQL. So here I will select exactly one item randomly from each category. People who need sometimes to select photo from each photo category and display them on the page for animation purpose will be benefited. In this example I have used two…

Posted in MySQL

Select only one random item from each category in MySQL

This tutorial shows how to replace the characters in a string or text using regular expression in MySQL function. There is no built-in function available to replace any character in a string or text in MySQL so here I am creating a custom function.

Posted in MySQL

Custom regex function to replace characters in MySQL

Private Constructor You probably know that you cannot make any object if the Class contains private constructor but this is not true until a special care is taken to the private constructor. This tutorial shows an example how to create instance using Reflection even if the classes have private constructors. Though if the special care…

Posted in Java

Instantiate Object From A Class Which Contains Private constructor

This tutorial shows how to read input from keyword using Java programming language. For example if your database connection string changes then you don’t need to worry because for any database connection string like username and password, this will still work. This is a simple example, you can customize as per your need. You can…

Posted in Java

How to read input through keyboard in Java