Latest posts

Servlet Filters

The Java Servlet specification version 2.3 introduces a new component type, called a filter. A filterdynamically intercepts requests and responses to transform or use the information contained in the requests or responses. Filters typically do not themselves create responses, but instead provide universal functions that can be "attached"…

Read more »


wro4j is a free and open source Java project which brings together almost all the modern web tools: JsHint, CssLint, JsMin, Google Closure compressor, YUI Compressor, UglifyJs, Dojo Shrinksafe, Css Variables Support, JSON Compression, Less, Sass, CoffeeScript and much more.

It can be used as a just…

Read more »

Refactoring - Composing Methods

"...The key refactoring is Extract Method, which takes a clump of code and turns it into its own method. Inline Method is essentially the opposite. You take a method call and replace it with the body of the code. I need Inline Method when I've done multiple extractions and realize some of the resulting…

Read more »

Spring Web Flow

Spring Web Flow is an extension to Spring MVC that enables development of flowbased web applications. It does this by separating the definition of an application's flow from the classes and views that implement the flow's behavior. Spring Web Flow Homepage


Read more »

Setup a JDBC connection in Glassfish

Wikipedia says that GlassFish is the reference implementation of Java EE and as such supports Enterprise…

Read more »

WebApplicationInitializer or AbstractAnnotationConfigDispatcherServletInitializer

With the release of the Servlet 3.0 spec it became possible to configure your Servlet Container with (almost) no xml. For this there is the ServletContainerInitializer in the Servlet specification. In this class you can register…

Read more »

Spring MVC

The Spring Web model-view-controller (MVC) framework is designed around a DispatcherServlet that dispatches requests to handlers, with configurable handler mappings, view resolution, locale, time zone and theme resolution as well as support for uploading files. The default handler is based on the @Controller

Read more »