Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

browser does not load style sheet with JSP

843836Dec 21 2004 — edited Mar 10 2005
Hi everyone,

I try to use a cascading style sheet file along with a jsp. The jsp is in directory jakarta-tomcat-3.3.2\webapps\examples\jsp and is named page.jsp There is a file format.css in the same directory. The jsp itself works fine but the browser does not pick up the css. In the jsp I have the entry
<link rel=stylesheet href="format.css" type="text/css">
When I use
<%@ include file="format.css" %>
instead, it works but then the resulting HTML sent to the browser is significantly bigger certainly which is not wanted. And to complicate the subject, it works with Internet Explorer 6. Only Mozilla Firefox 1.0 seems to have that problem.

Can anyone tell how to get it to work?

Thank you all for any hints
Ulrich
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2005
Added on Dec 21 2004
6 comments
1,281 views