pero on anything

DOH! IE displays white page after switching to JSPX

I guess almost everybody has been hit by the “IE shows only a blank page” issue while experimenting with XHTML back then. It is because IE requires a closing tag. The following fragment will not work in IE:



Ok, we learned that.

Today I had a hard time with IE showing a white page and all I had done was converting an old .jsp into a .jspx file.

What happened?

After hitting google with every type of phrase I could imagine describing my problem, I finally found it out: The servlet container (Tomcat 5.5.12) removed the closing script tag because the content of the script tag was empty. DOH!

What did the trick?

For now I do the following:



Wow. If you love surprises - do web development. ;)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">