Pages
Mikael Ståldal
Software projects
Categories
Archives
- January 2013
- August 2012
- July 2012
- January 2012
- December 2011
- November 2011
- October 2011
- July 2011
- May 2011
- April 2011
- November 2010
- August 2010
- June 2010
- April 2010
- November 2009
- September 2009
- August 2009
- July 2009
- April 2009
- January 2009
- December 2008
- July 2008
- October 2007
- May 2007
- March 2007
- September 2006
- May 2006
Category Archives: Java
Web application frameworks in Java
When you know which type of web application you are to develop, it’s time to have a look at some possible choices. I have tried to categorize some modern and popular web application frameworks in Java. Simple server driven MVC … Continue reading
Posted in AJAX, Java, JavaEE, web
2 Comments
Using Vaadin with Maven
Vaadin is a comprehensive framework for developing web applications in Java. The Vaadin web site presents a number of ways to use Vaadin with Maven, but I am not completely satisfied with any of those. Here is how I do … Continue reading
Posted in Java, web
3 Comments
Implementing POX Web Services with Spring WS and JAXB
Spring Web Services together with JAXB 2.0 provides a convenient way to implement POX Web Services in Java. POX means Plain Old XML, and a POX Web Service is a protocol based on sending XML over HTTP without using any … Continue reading
Posted in Java
3 Comments
How to implement RESTful JSON Web Services in Java
You can implement RESTful Web Services in Java using the JAX-RS framework. JAX-RS is part of the JavaEE 6 platform. But if you are not using a JavaEE 6 application server, you can use the reference implementation Jersey and embed … Continue reading
Posted in AJAX, Java, JavaEE, web
2 Comments
java.util.Map is broken in Java 5
Java 5 added generics. The collection classes was modified to make use generics to provide compile-time type-safe collections. Sadly, this was not done properly. The worst problem is in the interface java.util.Map: public interface Map<K,V> { // more methods… V … Continue reading
Type safe JSP and JSTL
When using JavaServer Pages, you want to use JSTL to be able to to flow-control (iterations and conditionals) in a reasonable way. And the recommended way to use JSTL is to use the Expression Language (EL). However, using EL is … Continue reading
java -classpath *.jar
It’s quite annoying that you cannot use wildcards in the -classpath command line option to java and javac. Quite often you want to include all .jar files in one directory. Here is a way to get that effect: java -classpath … Continue reading
Configure web applications in JBoss
When you deploy a web application in a JavaEE application server, it usually consist of a .war archive. Sometimes, the web application needs some configuration parameters. The most common way to do this is to have <context-param> in web.xml. That … Continue reading
Common mistakes with exceptions in Java
Unintentional catching of runtime exceptions Unfortunately, checked exceptions in Java are defined as all Exceptions which are not RuntimeExceptions. This makes it a bit tricky to catch all checked exceptions (but not any runtime exceptions). It would have been better … Continue reading
Who needs rmiregistry?
Java Remote Method Invocation (RMI) contains a tool rmiregistry to run a stand-alone remote object registry. According to the RMI tutorial, rmiregistry is normally used in an RMI application. I wonder why. It’s actually almost as simple to run the … Continue reading