jazz17782
03-02-2007, 05:19 AM
Hi Guys,
I'm having a real hard time trying to reference resources in different directories in my webapp. I'm using eclipse 3.2.1 with tomcat ver 5.5. My directory structure looks like this;
AcegiObs
|-WebContent
|-css
|-default.css
|-secure
|-main.jsp
|-WEB-INF
|-login.jsp
I have a reference to the default.css stylesheet in the css folder from the main.jsp in the secure folder. It goes like this;
<link rel="STYLESHEET" type="text/css" href="/css/default.css">
However nothing is loaded. I have tried omitting the "/" and many different directory paths, including the full directory from the root of the app, but nothing is working. Can anyone help?
I am using tomcat ver 5.5 in the eclipse 3.2.1 IDE.
I'm having a real hard time trying to reference resources in different directories in my webapp. I'm using eclipse 3.2.1 with tomcat ver 5.5. My directory structure looks like this;
AcegiObs
|-WebContent
|-css
|-default.css
|-secure
|-main.jsp
|-WEB-INF
|-login.jsp
I have a reference to the default.css stylesheet in the css folder from the main.jsp in the secure folder. It goes like this;
<link rel="STYLESHEET" type="text/css" href="/css/default.css">
However nothing is loaded. I have tried omitting the "/" and many different directory paths, including the full directory from the root of the app, but nothing is working. Can anyone help?
I am using tomcat ver 5.5 in the eclipse 3.2.1 IDE.