tag file tag lib tagfile taglib

Do not use taglibs, use tagfiles!

Taglibs are wonderful components available since J2EE 1.3. They enable you, as developer: to refrain from using too much scriptlets (free-form Java code) in your Java Server Pages,to have a library of reusable components that can be distributed to all your projects. Both are very important in the enterprise as of now. For example, as an architect, you can disallow the use of scriptlets altogether and then provide taglibs to restrain what can be done on the page. Such policies are not uncommon a

decoupling dependency dependency injection di META-INF osgi service locator serviceloader services

Simplest Java decoupling without 3rd party frameworks

[…​] coupling (or dependency) is the degree to which each program module relies on each one of the other modules. — Wikipedia http://en.wikipedia.org/wiki/Coupling_(computer_science) In object-oriented programming, removing dependencies is done by using interface. Thus, if class A is dependent on class B, we introduce interface C, which is implemented by B. Now A depends on C  (see below). This first step in decoupling is called programming by interface. Anyway, we sti

jawr jsp taglib web yslow

Decrease your pages load time

1. Generalities Web applications have several advantages over traditional client server applications: since business code comes from a unique server (forget clustering here), they are always up-to-date. Moreover, deployment of a new version is only a matter of minutes. They have one big drawback, though. Since HTML code is sent through the network, responsiveness is generally much less than that of traditional applications. The responsiveness of an interactive system describes how quickly

hibernate jpa persistence

Framework agnostic JPA

With new JEE 5 standard has come the EJB3 specifications. From an historical point of view, EJBs come into 3 different flavors: (i) Entity for persistence, (ii) Session for business logic and (iii) Message-Driven for listeners. Entity EJB are the most time-consuming to develop in their 2.1 version. Apart from the inherent complexity of EJB (local and remote interfaces, homes), developing an EJB 2 is error-prone because of the mapping mechanism. All in all, EJB 2 development really needs a very sp

upgrade wordpress

WordPress 2.7.1 upgrade

Noticed anything different on this blog? No? Yet, I upgraded WordPress from version 2.5 to version 2.7.1. Since you had no problems viewing this post, we can safely admit the upgrade process was entirely successful. The upgrade process is very simple since WordPress is developed in PHP. Just copy (and sometimes overwrite) the contents of the wordpress folder to your webserver and presto, you got the new version. I must admit I was a little afraid something would go wrong…​ And what

gears greasemonkey javadoc offline

Easy offline Javadoc

If like me you’re traveling often, and develop while doing so, you don’t want to waste time. Every laptop nowadays has a wifi interface: problem is finding the hotspot, not an easy task on a plane or on a train. Once, I used to download and save each and every Javadoc of Java, JEE and the various OpenSource frameworks I used (Struts, Hibernate, Spring, you get the idea). As bad luck would have it, 9 times out of 10, I hadn’t the correct version when I needed it. That was both

jdbc spring

Age of Spring

Since it first version, Spring has known success. How is it possible that such an unknown framework (at the time) has become so widespread that companies demand to attendants to have Spring knowledge? I think they are two main reasons for this. First, the use of Inversion of Control really helps unit testing your classes and since unit tests have become a hot topic, it is natural that a framework that promote independency between classes should win. But they are other IoC frameworks available.

open source opensource quality sonar

Manage the quality of your projects with Sonar

Sonar is a free OpenSource product that provides you with a general dashboard displaying information about the codebase of each configured project, such as: Number of failed tests,% of code coverage,% of rules compliance (more later),% of duplicated lines,and much more. Then you get an additional graphical information showing: a square for the size of your project’s codebase relative to the entire codebase’s size,a color (from red to green) for the % of rules compliance. Yet, w