0

this is a newbie question for you guys.

In file
/home/myhome/apache-tomcat-6.0.29/webapps/view/test.jsp

I have <link rel="stylesheet" type="text/css" href="WEB-INF/resources/view.css"/>

and the view.css file is located at
/home/myhome/apache-tomcat-6.0.29/webapps/view/WEB-INF/resources/view.css

For some reason, it's not loading the css file. But when I put the css file in the same directory as the jsp page and change href accordingly, it worked. What did I do wrong in my attempt to load the file from another folder?

Thanks alot.

2 Answers 2

1

try

Firebug, to debug if path is correctly loaded or not. As i can see it issue with path so you have to debug.

But you can try with this line instead

<link rel="stylesheet" type="text/css" href="/view/WEB-INF/resources/view.css" />
Sign up to request clarification or add additional context in comments.

Comments

0

Since I am using tomcat, I guess tomcat just won't let a page access anything in the WEB-INF folder, I moved the file else where not in WEB-INF, it worked...

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.