Archive for the ‘Java’ Category.
May 25, 2008, 8:11 pm
Java 5 supports reading GIF files. Java 6 also supports writing GIF files. I needed a nice way to write gif images from Java 5. A lot of GIF packages exists for Java 5. But most of them does not give the same nice result as the implementation by Sun. Since I couldn’t upgrade to Java 6 in my project, I backported parts of the javax.imageio package from openjdk-6-src-b09-11_apr_2008 (Can be downloaded from http://openjdk.java.net), so that it can run on Java 5. I’ve introduced new package names, so that this package will not mess with the standard javax.imageio package. Feel free to use it. But remember that it comes with no guarantees! If you find any problems you can mail me at java6-gif-backport/at/jakobielsen_dot_net.
Read more at http://www.jakobnielsen.net/java6-gif-backport
April 20, 2007, 12:54 pm
The jetty-maven-plugin is a great way to run a webapp during development. But the main problem is that it doesn’t print debug messages when you are using commons-logging. The reason is that it by default uses org.apache.commons.logging.impl.SimpleLog. This logger can’t print debug messages. Here is the solution on how to change this default behaviour so that it use Log4J instead.
Continue reading ‘Logging with log4j in jetty-maven-plugin’ »
January 30, 2007, 11:25 am
From time to time I do write JSP taglibs. The java-part of this is almost fun. But writing the tld-files by hand is something that simply is just boring. Therefor I use XDoclet (webdoclet) to generate these tld-files for me. This small tutorial will show you what XDoclet tags you must set in your taglib class, and finally how to get XDoclet doing the magic with Maven 2.
Continue reading ‘Automagic taglib descriptors with XDoclet and Maven 2’ »