Spring @MatrixVariable at specific position in a URL

This tutorial will show you how we use @MatrixVariable annotation in Spring Web MVC. The URI has the possibility of including name-value pairs within path segments. The general “URI path parameters” could be applied although the more unique “Matrix URIs” is also frequently used and fairly well known. Within Spring MVC these are referred to as matrix variables. Matrix variables…

Spring @MatrixVariable

In this tutorial I will show you how to use @MatrixVariable annotation in Spring Web MVC (Model View Controller) application. The URI has the possibility of including name-value pairs within path segments. The general “URI path parameters” could be applied although the more unique “Matrix URIs”, originating from an old post by Tim Berners-Lee, is also frequently used and fairly…

Spring Web MVC @PathVariable with Regular Expressions

This tutorial will show you how we use @PathVariable annotation with Regular Expressions in Spring Web MVC. Sometimes you need more precision in defining URI template variables. The @RequestMapping and @GetMapping annotations support the use of regular expressions in URI template variables. The syntax is {varName:regex} where the first part defines the variable name and the second – the regular…

Spring Boot Web MVC @PathVariable

Path Variable This tutorial will show you how to use @PathVariable annotation in Spring MVC. The @PathVariable annotation is used on a method argument to bind it to the value of a URI template variable. You can also make this path variable optional in the URI. Path variable can appear in any path segment of the URI.

Using Template in Codeigniter 3

Introduction This tutorial will show you an example on how to use template in Codeigniter 3. In an web application a template is recommended because there are certain regions or areas which are common to all pages and only the body portion of the page gets changed. Common areas like header, footer, left sidebar or right sidebar are mainly common…

Setup HMVC With Codeigniter 3

Introduction This is an example on HMVC Codeigniter 3. HMVC stands for Hierarchical Model View Controller. Modular Extensions make the Codeigniter PHP framework modular. Modules are groups of independent components, typically model, controller and view, arranged in an application modules sub-directory that can be dropped into other Codeigniter applications. This allows easy distribution of independent components (MVC) in a single…

Spring Web MVC

This tutorial will show you how we configure Spring MVC, maven and Tomcat 7. For this tutorial we will create maven based web project in Eclipse. If you already have an idea on how to create a maven project in Eclipse will be great otherwise I will tell you here how to create a maven project in Eclipse.

JSP Custom Tag Library

We will see here how to create JSP custom tag library. We know JSP tags simplify JSP page development and maintenance works in our day-to-day life. JSP technology also provides a mechanism for encapsulating other types of dynamic functionality in custom tags, which are extensions to the JSP language.

Deal With Empty Or Blank Cell In Excel File Using Apache POI

Empty/Blank Cell This tutorial will show you how you can deal with empty or blank cell in excel file using Apache POI. You won’t be able to handle blank or empty cell if you use cell iterator, so you have to get the maximum cell index for the row and iterate through index to deal with empty cell. Related Posts:…

Check a given date is first day of month using Joda API

Introduction In this post, I will show you how to check whether a given date is first day of the month using Joda API. Joda API is a date time API which provides useful methods for data and time management in Java applications.