Java

Internationalising JSPs

Tuesday, August 1st, 2006 by DenisH

We recently had what sounded like a simple job to do: produce a questionnaire in several languages including Russian and store the results in a MySQL database. Now I could have chosen PHP to produce the questionnaire, but I thought that using Java resource bundles would be the easiest. I knew that using the JSTL fmt: tags we could do fmt:message and pull the messages out of a resouce bundle so all I had to do was get the translators to take the english property file, translate it and hey presto! Java knows about Unicode right into its core, so it would all work wouldn’t it.

How wrong I was! (more…)

Converting Lisp universal times to Java Dates

Wednesday, March 29th, 2006 by DenisH

I don’t suppose that this is something that many people need to do, but just in case I thought I’d post this little code snippet (more…)

Which jar contains my…

Wednesday, February 22nd, 2006 by DenisH

Have you ever had the problem where there’s a class missing and you’ve no idea which jar it might be in? Or been running a Java program and wondered why the implementation of a class doesn’t seem to match what you think, and it turns out that there’s another implementation earlier in the classpath? Or wondered which jar has the properties file you’re looking for?

If you’ve answered yes to any of these question, you might like these little utilities (more…)

Accessing ADSI from Java

Thursday, May 19th, 2005 by DenisH

The aim of this project was to be able to get the groups that an NT user belongs to using ADSI (Active Directory Services Interface) and make this available in Java. In the first article we described how to get ADSI information using VBScript, JScript and then C++. Now we show how to wrap up the C++ function in a DLL that’s accessible using JNI. (more…)

Generating a database dump SQL Script from Java

Thursday, October 28th, 2004 by DenisH

The aim of this project is to generate an SQL script from an existing database such that the tables and data can be recreated exactly as it was. (more…)