One common performance requirement for large websites is that different domain names should be used to serve static and dynamic content. The reason behind this requirement is that usually browsers do not download more than two components in parallel per domain name, because of the HTTP 1.1 specification. Thus, separating static and dynamic content under […] Read More about Deploying Static and Dynamic Content With Maven Wagon Plugin
Category: Programming (37 / 37)
Selecting the Used SiteMesh Decorator by Using Locale Information Stored in the Session
SiteMesh is a web page layout and decoration framework, which can be used to select the layout and style of the web application's user interface when certain criterias are met. I will not go into any details, because Will Iverson has written an article, which gives the reader a good introduction to Sitemesh framework. Even […] Read More about Selecting the Used SiteMesh Decorator by Using Locale Information Stored in the Session
Fixing JPA2 Sequence Generator Problem With Hibernate 3.5
I ran into a really weird problem when I was playing around with JPA2 by using Hibernate 3.5 as JPA2 implementation. I had implemented two entity classes called BaseEntity and Person. BaseEntity class contains the common properties of all entity classes. The Person class extends the BaseEntity class and adds some person specific properties in […] Read More about Fixing JPA2 Sequence Generator Problem With Hibernate 3.5
Wrong Reasons Not to Write Unit Tests
Automatic testing and continuous integration have become a some what standard in modern day software development. Even though I have noticed by experience that automatic testing does indeed reduce the number of bugs found from the software, not everyone is fond of writing unit tests. This blog post gathers together some of the objections against […] Read More about Wrong Reasons Not to Write Unit Tests
Confessions of a Code Quality Heretic
After I stumbled upon a blog post, which headline was Exceptional Herecy, I decided to write a short blog post concerning my own heretic thoughts, which I have since abandoned. I am pretty sure that almost every programmer has heard the phrase "A good code comments itself". However, at the time when I heard it, […] Read More about Confessions of a Code Quality Heretic
Preventing The I18n Process of Spring MVC from Falling Back to System Locale
One day we decided to optimize the translation process of one of our web applications to reduce the number of resource files from three to two. Our web application supported two languages (Finnish and English), and the default resource file had the exactly same content than the resource file for the Finnish language. Of course […] Read More about Preventing The I18n Process of Spring MVC from Falling Back to System Locale