I am developing an web application in Spring MVC Framework with Eclipse Europa IDE and Tomcat server
My directory structure is(partial):
- WebContent
- WEB-INF
- pages
- CSS
- images
- login.html
- dispatcher-servlet.xml
- web.xml
In my login.html I have a link to a css file as
<link rel="stylesheet" type="text/css" href="CSS/loginregister.css" media="screen">
Since my login.html and CSS folder are in the same folder "pages" I thought this would work.
But NO. The css file didn't load (login.html appears smoothly)
I also tried:
<href="/CSS/loginregister.css">
<href="pages/CSS/loginregister.css">
I am accessing the login.html via my controller class.
my URL comes like this: http://localhost:8080/AccountCreation/login.htm
Can any one tell me where is the problem ?