Thursday, June 12, 2008

My Java App IE8 Readiness Toolkit!

Oh joy, another major HTML/CSS rendering engine for me to test my web applications against and I really cannot be bothered. IE8 may well turn out to be a really good thing but my early experiences of IE8 Beta are that it makes a right royal mess of my CSS/DHTML powered applications so until IE8 renders like IE7 and Firefox here is my servlet filter solution for my Java applications:

package edu.bristol;

import javax.servlet.*;
import javax.servlet.http.HttpServletResponse;

public class FixForIE8 implements Filter {

public void init(FilterConfig filterConfig)
throws ServletException {

public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException, ServletException {
((HttpServletResponse) response).setHeader("X-UA-Compatible", "IE=EmulateIE7");
chain.doFilter(request, response);

public void destroy() {

See also: Introducing IE=EmulateIE7


ismjml said...

How to render GML data?

Any free rendering tool for GML.
Note: Comment imported. Original by Atul at 2008-06-18 10:32

ismjml said...

Your comment doesn't have much to do with IE8! However, QGIS will render GML for you
Note: Comment imported. Original by markmc website: at 2008-06-18 17:41

madin said...

replica Cartier is the renowned French jeweller and watchmaker with a history of pioneering design and a drive for excellence.
The first references to Ballon Blanc de Cartier wristwatches date back to 1888.