Hello,

I have a simple JSP that is served by jboss (4.2.3-GA) under ubuntu linux. A 
stylesheet is used in the header of the jsp.

If I use a konqueror browser the css styles are loaded. If I use the firefox 
(3.08) which is actually my standard browser the stylesheet is not loaded. 
Generally the stylesheets are loaded correctly in firefox only if I load the 
struts-jsps from my local machine I get this problems. Any ideas ?

Thanks in advance
Tony

I've shortened the files just to show the problem:

JSP

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xml; charset=UTF-8">
<link rel="stylesheet" type="css/text" media="screen" href="<s:url 
value="/css/bpportal.css"/>" />
<title>Sign on</title>
</head>
<body>
<h4>Bitte Loginname und Passwort eingeben</h4>
<div class="test">
<s:form action="/portal/Login.action">
    <s:textfield label="Loginname" name="username"/>
    <s:password label="Passwort" name="password" />
    <s:submit/>
</s:form>
</div>
</body>
</html>


CSS
 
body,html {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 100.01%;
        margin: 0;
        padding: 0;
        text-align: left;
}

.test {
        background: #ccc;
}

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to