tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: jsps xhtml and Internet Explorer
Date Fri, 08 Aug 2003 04:42:01 GMT
MSIE has a bad habit of ignoring Content-Type, so I don't know that this
will work.  However, what you want is:
  <jsp:directive.page contentType="text/html; charset=iso-8859-1" />

(of course, change the charset if you aren't using iso-latin-1).

<graham.stark@virtual-worlds.biz> wrote in message
news:1060247474.3f3217b28fc14@www.virtual-worlds.biz...
> Hi there,
>           anoyone know this one?
>
> I have a jsp page written to the xhtml standard. It looks like this:
>
> <?xml version="1.0"?>
>
>     <!-- 
>       - Author(s):
>       - Date:
>       - Copyright Notice:
>       - @(#)
>       - Description:
>       -->
>      <jsp:root  xmlns:jsp="http://java.sun.com/JSP/Page"
>                 xmlns:html="/WEB-INF/struts-html.tld"
>                 xmlns:bean="/WEB-INF/struts-bean.tld"
>                 xmlns:dt="http://jakarta.apache.org/taglibs/datetime-1.0"
>                 xmlns:c="http://java.sun.com/jstl/core"
>                 xmlns:fmt="http://java.sun.com/jstl/fmt"
>                 version="1.2">
>     <html:html xhtml="true">
>     <head>
>        [...]
>     </head>
>     <body>
>        [...]
>     </body>
>   </html:html>
> </jsp:root>
>
>
> All seems fine. The page compiles properly and looks nice on every browser
I've
> tried. Except Internet Explorer (v6), where it simply displays the XML
source tree.
>
> I tried adding:
>
>  <mime-mapping>
>     <extension>jsp</extension>
>     <mime-type>text/html</mime-type>
>   </mime-mapping>
>
> (and simlarly for xhtml) to the web.xml (both the webapp one and the
global one).
>
>
> I'm using tomcat 4.0.6 and java 1.4.1 (I can't easily upgrade these
because this
> is what my client use). I've had a search through the FAQs, this list's
archive
> and on Google and can't find the solution.
>
> Has anyone seen this before?
>
> Many thanks,
>
> Graham




Mime
View raw message