You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Purcell, Scott" <sp...@ltcgroup.com> on 2001/04/18 16:18:14 UTC

CSS Help

Hello,
I am starting to test out the Tomcat Server, and I am doing an example that
is in the Core Servlets and JSP book. Anyway, they have an example of using
some CSS in a resume posting example. 

I am entering the HTML into the following folder under Tomcat:
D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\test.html

So I decided to put my CCS page here also
D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\test.css

The beginning of my HTML has the following:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional/EN">
<HTML>
<HEAD>
   <TITLE>Free Resume Posting</TITLE>
   <LINK REL=STYLESHEET HREF="test.css" TYPE="text/css">
</HEAD>
<BODY>


I have tried about everything, but I cannot pick up the CSS file? I have
restarted the tomcat, and cleared browser cache, quit the browser. Here is
the message from the Tomcat Console.

2001-04-18 09:16:29 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): FileHandler: Ends with
\/. D
:\tomcat\jakarta-tomcat-3.2.2b2\webapps\jobs-site-styles.css\
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): FileHandler: Ends with
\/. D
:\tomcat\jakarta-tomcat-3.2.2b2\webapps\jobs-site-styles.css\
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null

I see a slash before jobs but it is not in my HTML? This is my first CSS
mission, does anyone see any issues here?

Thanks
Scott Purcell


RE: CSS Help

Posted by Craig O'Brien <cr...@dynamic-apps.com>.
You appear to have a naming problem with your css document.  You mention
that you placed "test.css" in the ROOT directory yet the error is in finding
"jobs-site-styles.css".  Rename the "test" file. This has nothing to do with
java. 404 is simply file not found.

I am assuming that you do have a "<" at the beginning of !DOCTYPE.... and
that you are accessing tomcat with port 8080 (or what ever you deliberately
chose).

Good luck, I liked that book as well.
Craig

-----Original Message-----
From: Purcell, Scott [mailto:spurcell@ltcgroup.com]
Sent: Wednesday, April 18, 2001 7:18 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: CSS Help


Hello,
I am starting to test out the Tomcat Server, and I am doing an example that
is in the Core Servlets and JSP book. Anyway, they have an example of using
some CSS in a resume posting example.

I am entering the HTML into the following folder under Tomcat:
D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\test.html

So I decided to put my CCS page here also
D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\test.css

The beginning of my HTML has the following:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional/EN">
<HTML>
<HEAD>
   <TITLE>Free Resume Posting</TITLE>
   <LINK REL=STYLESHEET HREF="test.css" TYPE="text/css">
</HEAD>
<BODY>


I have tried about everything, but I cannot pick up the CSS file? I have
restarted the tomcat, and cleared browser cache, quit the browser. Here is
the message from the Tomcat Console.

2001-04-18 09:16:29 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): FileHandler: Ends with
\/. D
:\tomcat\jakarta-tomcat-3.2.2b2\webapps\jobs-site-styles.css\
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): FileHandler: Ends with
\/. D
:\tomcat\jakarta-tomcat-3.2.2b2\webapps\jobs-site-styles.css\
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null

I see a slash before jobs but it is not in my HTML? This is my first CSS
mission, does anyone see any issues here?

Thanks
Scott Purcell



RE: CSS Help

Posted by Greg Chakmakian <gr...@mac.com>.
This is the way I've always done it. . .

<LINK href="style.css" rel=stylesheet type=text/css>


. . And I put it in between my head tags like you did.  Hope this helps.

-greg




-----Original Message-----
From: Purcell, Scott [mailto:spurcell@ltcgroup.com]
Sent: Wednesday, April 18, 2001 10:18 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: CSS Help


Hello,
I am starting to test out the Tomcat Server, and I am doing an example that
is in the Core Servlets and JSP book. Anyway, they have an example of using
some CSS in a resume posting example. 

I am entering the HTML into the following folder under Tomcat:
D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\test.html

So I decided to put my CCS page here also
D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\test.css

The beginning of my HTML has the following:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional/EN">
<HTML>
<HEAD>
   <TITLE>Free Resume Posting</TITLE>
   <LINK REL=STYLESHEET HREF="test.css" TYPE="text/css">
</HEAD>
<BODY>


I have tried about everything, but I cannot pick up the CSS file? I have
restarted the tomcat, and cleared browser cache, quit the browser. Here is
the message from the Tomcat Console.

2001-04-18 09:16:29 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): FileHandler: Ends with
\/. D
:\tomcat\jakarta-tomcat-3.2.2b2\webapps\jobs-site-styles.css\
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): FileHandler: Ends with
\/. D
:\tomcat\jakarta-tomcat-3.2.2b2\webapps\jobs-site-styles.css\
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null

I see a slash before jobs but it is not in my HTML? This is my first CSS
mission, does anyone see any issues here?

Thanks
Scott Purcell



RE: CSS Help

Posted by Arafat Mohamed <ab...@yahoo.com>.
Sounds like one of your java classes is trying to find jobs*.css and not
being able to. I don't think you'd get that error msg if the problem was in
your html...
Try renaming test.css to jobs-site-styles.css and see what happens

Then again, I might be completely clueless :)

Arafat B Mohamed
Web Developer
RMC Industries.com
(404) 371-1050


-----Original Message-----
From: Purcell, Scott [mailto:spurcell@ltcgroup.com]
Sent: Wednesday, April 18, 2001 10:18 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: CSS Help


Hello,
I am starting to test out the Tomcat Server, and I am doing an example that
is in the Core Servlets and JSP book. Anyway, they have an example of using
some CSS in a resume posting example.

I am entering the HTML into the following folder under Tomcat:
D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\test.html

So I decided to put my CCS page here also
D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\test.css

The beginning of my HTML has the following:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional/EN">
<HTML>
<HEAD>
   <TITLE>Free Resume Posting</TITLE>
   <LINK REL=STYLESHEET HREF="test.css" TYPE="text/css">
</HEAD>
<BODY>


I have tried about everything, but I cannot pick up the CSS file? I have
restarted the tomcat, and cleared browser cache, quit the browser. Here is
the message from the Tomcat Console.

2001-04-18 09:16:29 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): FileHandler: Ends with
\/. D
:\tomcat\jakarta-tomcat-3.2.2b2\webapps\jobs-site-styles.css\
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): FileHandler: Ends with
\/. D
:\tomcat\jakarta-tomcat-3.2.2b2\webapps\jobs-site-styles.css\
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null

I see a slash before jobs but it is not in my HTML? This is my first CSS
mission, does anyone see any issues here?

Thanks
Scott Purcell