Closed
Bug 275656
Opened 20 years ago
Closed 20 years ago
style sheet not loaded for JSP page under tomcat
Categories
(Firefox :: General, defect)
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: ulrich.hilger, Assigned: bugzilla)
References
()
Details
Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.5) Gecko/20041122 Firefox/1.0 I try to display a JSP page with a link to a cascading style sheet. The page file is C:\jakarta-tomcat-3.3.2\webapps\examples\jsp\page.jsp It contains a link tag as follows <link rel="stylesheet" href="format.css" type="text/css"> and the file format.css is in the same directory as file page.jsp When I open the page with Firefox using URL http://localhost:8080/examples/jsp/page.jsp?id=74 it displays the page contents properly but without the styles from the referenced style sheet. When opening the page with the same URL under IE 6.0 it is displayed normally with styles. What can I do to fix that problem?
Comment 1•20 years ago
|
||
Do you see an error in the JS Console or Do you know if the .css if served with the correct mime-type ?
Severity: blocker → normal
| Reporter | ||
Comment 2•20 years ago
|
||
with the help of someone in the Java developers forums I found out that it is
simply a missing setting of tomcat. It is not a bug. To get it to work there
must be a web.xml file in the appropriate directory of tomcat with the following
entry
<mime-mapping>
<extension>css</extension>
<mime-type>text/css</mime-type>
</mime-mapping>Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Comment 3•20 years ago
|
||
as I expected, your server sent the wrong mime-type. You can see this error in the Javascript Console...
Status: RESOLVED → VERIFIED
| Reporter | ||
Comment 4•20 years ago
|
||
yes, Matti, you were right, thanks for your help
You need to log in
before you can comment on or make changes to this bug.
Description
•