tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Stark <graham.st...@virtual-worlds.biz>
Subject Re: jsps xhtml and Internet Explorer
Date Fri, 08 Aug 2003 17:22:07 GMT
Bill,
     many thanks: that worked perfectly. 
Graham

> 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
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
-- 
Graham Stark, Virtual Worlds
phone: (+044) 01908 618239 mobile: 07952 633185
Homepage http://www.virtual-worlds.biz
Virtual Learning Arcade http://www.bized.ac.uk/virtual/vla
Virtual Economy http://www.bized.ac.uk/virtual/economy         


Mime
View raw message