Introduction In this tutorial, I will discuss about how to work with CodeIgniter 4 filters. These filters are controller filters. Controller Filters allow you to perform actions either before or after the controllers execute. Unlike events, you can choose the specific URIs in which the filters will be applied to. Incoming filters may modify the…

Posted in Codeigniter MySQL

CodeIgniter 4 Filters Example

Introduction In this example I am going to show you how to work with filters in excel file on text column using Java and Apache POI library. The following list of custom filters for number columns can be implemented: Equals Does Not Equal Greater Than Greater Than Or Equal To Less Than Less Than Or…

Posted in Excel Java

Excel Custom Filters on Number Column using Java and Apache POI

Introduction In this example I am going to show you how to work with filters in excel file on text column using Java and Apache POI library. The following list of custom filters for text columns can be implemented: Equals Does Not Equal Begins With Ends With Contains Does Not Contain

Posted in Excel Java

Excel Custom Filters on Text Column using Java and Apache POI

Introduction This tutorial will show you how to use Java 8 stream API‘s filter() and map() methods. The filter() method in Java 8 or onward is used to produce a stream containing only a certain type of objects into the result output and map() method is used to transform a stream from one type to…

Posted in Java

Java 8 Stream Filter Example

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…

Posted in JSP Servlet

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

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

Posted in JSP Servlet

Prevent browser from caching resources

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…

Posted in Java Servlet

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