First of all I used getHeaders(String) rather than getHeader(String) because as the Servlets 2.2 API says "Some headers, such as Accept-Language can be sent by clients as several headers each with a different value rather than sending the header as a comma separated list. ". So a method which returns an Enumeration rather than a String is more approriate.
What is returned is an Enumeration of strings which look something like this. "en,en-gb;q=0.7,en-us;q=0.3" which you can compare to your browsers language settings. Basically this one says. "I'd prefer English (en), my next prefernce is British English(en-gb) and my next preference is US English(en-us)."
I havn't quite completed what I'm doing yet but i'm hoping to be able to use these settings to localize a
JSP according to the browser language settings rather than having the user specify a language.
Pounding at a thick stone wall won't move it, sometimes, you need to step back to see the way around.