proksy
March 27th, 2013, 10:17 PM
OK, this isn't my first rodeo so-to-speak but I have run into a wall trying to get CSS to work on a new 12.04 LAMP + tomcat build. I had an old web developer work station i needed to "recycle" and so I copied the web app project directly over to the new computer. We use eclipse the make java jsp webapps. The old workstation is still up and working perfectly fine but the new workstation will not load CSS no matter what I do. When I use firebug to debug it shows CSS pointing to localhost:8080/css/ and recognizes the css file, styles.css with a checkmark next to the file name. When I try to navigate to localhost:8080/css/styles.css I recieve The requested resource (/css/styles.css) is not available. So firebug finds and sees the styles.css but tomcat doesn't. My code for the html is the following:
<!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/html; charset=utf-8" />
<title>Login Page</title>
<link href="../css/styles.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
Work damn you'z!!!
<div id="head">
<div id="head_cen">
<div id="head_sup" class="head_pad">
<p class="search">
</p>
<h1 class="logo"><a href="index.html"></a></h1>
<ul>
</ul>
</div>
</div>
</div>
<div id="content">
<div id="content_cen">
<div id="content_sup" class="head_pad">
<div id="welcom_pan">
<h2><span>Work!!! </span>Login</h2>
<br><br>
</div>
</div>
</div>
</div>
<div id="foot">
<div id="foot_cen">
<p>created by: A Huge Pain-in-the-neck<a href="" target="_blank"></a></p>
</div>
</div>
</body>
</html>
The styles.css code is absolutely not the issue here because I have the working webserver right in front of me and have simply copied the files over to the new server. I have googled this and have followed the steps provided here:
http://stackoverflow.com/questions/7636360/why-doesnt-tomcat-6-find-my-styles-css
I have tried referencing styles.css from the project folder of eclipse and the ROOT/css/ directory in tomcat with no success. A nice cold beer to anyone willing to help out ;) Thanks everyone in advance.
<!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/html; charset=utf-8" />
<title>Login Page</title>
<link href="../css/styles.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
Work damn you'z!!!
<div id="head">
<div id="head_cen">
<div id="head_sup" class="head_pad">
<p class="search">
</p>
<h1 class="logo"><a href="index.html"></a></h1>
<ul>
</ul>
</div>
</div>
</div>
<div id="content">
<div id="content_cen">
<div id="content_sup" class="head_pad">
<div id="welcom_pan">
<h2><span>Work!!! </span>Login</h2>
<br><br>
</div>
</div>
</div>
</div>
<div id="foot">
<div id="foot_cen">
<p>created by: A Huge Pain-in-the-neck<a href="" target="_blank"></a></p>
</div>
</div>
</body>
</html>
The styles.css code is absolutely not the issue here because I have the working webserver right in front of me and have simply copied the files over to the new server. I have googled this and have followed the steps provided here:
http://stackoverflow.com/questions/7636360/why-doesnt-tomcat-6-find-my-styles-css
I have tried referencing styles.css from the project folder of eclipse and the ROOT/css/ directory in tomcat with no success. A nice cold beer to anyone willing to help out ;) Thanks everyone in advance.