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…

Spring, JSP and Servlet integration example

Introduction In this tutorial we will create web application for Spring, JSP and Servlet integration example. In this spring, jsp and servlet integration example we will use spring version 3, jsp version 2 and servlet version 3. Though there are several MVC frameworks like JSF, Struts, Spring MVC etc. but still if you need to use Servlet without any MVC…

Global Exception configuration using web.xml, servlet and jsp

This tutorial shows how we can configure exception/error handling globally using deployment descriptor, servlet and jsp. The aim of this tutorial is to teach whenever an exception or error occurrs in an web based application then that exception or error will be thrown in an appropriate manner and show the error page with the exception or error information in jsp page.