Posted in JSP Servlet

Show Warning Message to User When Session Expires

Introduction In this post we will see how to show warning message to user when session expires in a web application. So we will redirect user to login page once session has expired. We know that we let users login to the web application before a user can perform some sensitive activities like online transactions, updating user’s profile etc. So…

Continue Reading... Show Warning Message to User When Session Expires
Posted in JSP Servlet

Prevent user going back to login page if already logged in using filters

In this article I am going to show you how to prevent user going back to the login page if a user is already logged in or redirect a user to the login page if the user is not already logged in. When browser caches the resources then clicking on the browser’s back button will take a user to the…

Continue Reading... Prevent user going back to login page if already logged in using filters
Posted in JSP Servlet

Prevent Browser From Caching Resources Using Servlet Filter

Introduction In this tutorial I am going to tell you how you can prevent cache in browser using Servlet in web applications. Sometimes you may need to clear the browser cache or prevent the browser from caching resources so that users always get the latest output from the server. Disabling caching of web pages ensures resources are coming every time…

Continue Reading... Prevent Browser From Caching Resources Using Servlet Filter
Posted in Email XAMPP

How To Send Email From Localhost With XAMPP And Mercury32 In Windows

Table of Contents Introduction Prerequisites Install XAMPP Configure XAMPP for Sending Email Setup Email Clients Setup Microsoft Outlook Express Sending Email using Outlook Setup eM Client Sending Email using eM Client Introduction Many of you tried to send mail from localhost for testing some functionality in the website like User Registration, Password Activation etc. in the local or development environment…

Continue Reading... How To Send Email From Localhost With XAMPP And Mercury32 In Windows
Posted in MySQL PHP

Infinite Dynamic Multi-Level Nested Category With PHP And MySQL

Introduction I am going to show you how to build infinite dynamic multi level nested category with PHP and MySQL server. Here I will show example of infinite level of categories and subcategories on the fly from a MySQL database. So I am going to give an example on infinite multi level nested category with PHP and MySQL. Related Posts:…

Continue Reading... Infinite Dynamic Multi-Level Nested Category With PHP And MySQL
Posted in File Upload JavaScript jQuery

More File Upload Button Attachment Dynamically Using jQuery

Attach Buttons Dynamically Here is an example on more file upload button attachment dynamically using jQuery. This example will allow you to attach more file upload button dynamically. The technology I will use here to attach more file upload button using JavaScript and jQuery. Note that this example will not show you how to upload file or files. This is…

Continue Reading... More File Upload Button Attachment Dynamically Using jQuery
Posted in Java Servlet

Cache static resources like css, js and images for a specific time period

Introduction In this post we will see how to cache static resources like css, js and images for a specific period of time. So we will specify the time for how long we want to cache such static resources. Static resources like css, js images etc. need not be reloaded from the server every time until and unless we want…

Continue Reading... Cache static resources like css, js and images for a specific time period
Posted in Joomla

How to configure GeSHi(Generic Syntax Highlighter) in Joomla 3

This tutorial shows how to configure GeSHi in Joomla 3. GeSHi is known as Generic Syntax Highlighter. We configure GeSHi to highlight the source code in tutorials in order to enhance the experience of user’s readability. Highlighting the source code in tutorials also enhance the beautification of the tutorials. First download and install the plugin from here. After installation the plugin…

Continue Reading... How to configure GeSHi(Generic Syntax Highlighter) in Joomla 3
Posted in MySQL PHP

Create An Effective Pagination In PHP And MySQL

This tutorial shows how to create effective pagination in PHP and MySQL. When there are lots of data need to be shown on a page then the data grows at the bottom of the page hence the scroll appears. Most of the times it becomes very irritating to go to the bottom so pagination comes to rescue. Using pagination the…

Continue Reading... Create An Effective Pagination In PHP And MySQL
Posted in MySQL PHP

Database Connection Example In PHP and MySQL

Introduction This tutorial shows database connection example in PHP and MySQL. Here I will create a PHP file with commonly used functions on how to connect to MySQL database using PHP. It is mandatory to establish database connection when you are working on a dynamic application. The database may be any one of your choice or according to the requirement…

Continue Reading... Database Connection Example In PHP and MySQL