3 Replies Latest reply on Mar 1, 2006 3:12 AM by tzablock

    JSF & stylesheets login issue

    tzablock

      Ok here I go with my bizarre problem.

      I'm creating a webapp with JSF. There is a JBossSX based security with a form type login. This is the index.jsp file:
      -----
      <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
      <c:redirect url="/main.faces" />
      -----

      the main.jsp file is a secure resource.

      this is the login.jsp file witch is the login page:

      -----
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
      <c:set var="full_header" value="true" />
      <f:view>


      <link href="<c:url value="/common.css" />" rel="stylesheet" type="text/css" />



      <h:outputText value="login" />
      <input type="text" name="j_username" value="<h:outputText value="password/>
      <h:outputText value="password" />

      "/>



      </f:view>
      -----
      if there is no stylesheet added to the login.jsp file everything works fine. But whenever I'm using the stylesheet - as it is above, when i press the submit button i'm being redirected to some weird resource - an image or common.css file...!!!

      I've already spent half of my day with that issue and I still can't find any clue on how to fix it....