I'm no JSF expert, but the following might get you somewhere...

Do you have a MIME type configured for the url extension(s) that you have for your JSF URLs?

I've also seen a recommendation to add the following directive:

<jsp:directive.page contentType="text/html"/>

on the Core JSF FAQ page.


--
Stephen


Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Josué,

Josué Alcalde González wrote:
I am developing a JSF application using tomcat 5.5.20 and myfaces 1.1.4.

It works perfect in Firefox but IE doesn't show the faces pages, but it
prompts to download.

MSIE is a pile of crap. Given your JSP code:

<%@ page language="java" contentType="text/html charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt"; prefix="c"%>
<c:if test="${loginSessionBean != null}">
  <c:redirect url="usuarios.faces" />
</c:if>
<html>

You have a lot of stuff before the "<html>" header. MSIE ignores the
Content-Type header that the server sends because it thinks it's smarter
than the server. If it can't find something that looks like HTML in the
first couple of bytes of the document, it craps its pants and uses
"application/octet-stream" as the MIME type.

I recommend tweaking your JSP page so that your <html> comes as early in
the page as possible. Try taking out some of the extra newlines between
those <%@ taglib %> directives (seriously). Maybe even put the <html>
above the <[EMAIL PROTECTED] %> directive if tht even works.

My guess is that this small, stupid change will fix your MSIE woes.

Great further reading on MSIE and the Content-Type:
http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html

- -chris

<[EMAIL PROTECTED] file="inc/htmlhead.inc.html"%>

<body>

<f:view>

  <[EMAIL PROTECTED] file="inc/cabecera.inc.jsp"%>

  <h:form id="frLogin">
    <t:div styleClass="cont_login" id="cont_login">
      <t:div styleClass="login_izqda" id="login_izqda">
        <t:graphicImage id="giIcoAcceso" url="images/ico_acceso.gif"
          alt="Imagen de acceso" />
      </t:div>
      <t:div styleClass="login_dcha" id="login_dcha">
        <f:verbatim>
          <h2>Bienvenido</h2>
          <span class="mensajes">Por favor, introduzca sus datos para
proceder a la
          validación</span>
        </f:verbatim>
        <h:panelGrid columns="2" cellpadding="0" cellspacing="0"
          style="margin:5px 0 5px 0;">
          <h:outputLabel id="olLogin" for="itLogin" value="Usuario"
            style="margin-right:10px;" />
          <h:outputLabel id="olPassword" for="isPassword"
value="Contraseña" />
          <h:inputText id="itLogin" required="true" tabindex="0"
            style="margin-right:10px;" />
          <h:inputSecret id="isPassword" required="true">
            <f:validator
validatorId="es.csa.ubu.paninfo.web.validators.LoginValidator" />
          </h:inputSecret>
        </h:panelGrid>
        <h:commandButton value="Aceptar"
action="#{loginSessionBean.autenticacion}"
          styleClass="botones" />
      </t:div>

    </t:div>

    <t:div styleClass="errores" id="errores"
      rendered="#{! empty facesContext.maximumSeverity}">
      <h:panelGrid columns="1">
        <t:message id="mesLogin" for="itLogin" />
        <t:message id="mesPassword" for="isPassword" />
      </h:panelGrid>
    </t:div>
  </h:form>
</f:view>

</body>

</html>

---------------------------------------------------------------------------

What could be the problem? I have no ideas.



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUlaH9CaO5/Lv0PARAqlUAKCzkaxVdW1I0sld3hXg6BtxrNqcigCdGnKN
3ZCRTY9k23QtwQuyHxt1y3U=
=LkQX
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to