I have created MVC application.
I want to include js or css file into jsp.
My static files ar under:
- webapp -js/jquery.js -WEB-I
I agree with your answer. But in the style.css file declare url that relate to path of image.
--style.css--
.cwt-object0
{
display: block;
left: 2.62%;
margin-left: -1px;
position: absolute;
top: 43px;
width: 64px;
height: 64px;
background-image: url('/resources/images/object0.png');
background-position: 0 0;
background-repeat: no-repeat;
z-index: 0;
}
How to use tag
in style.css file to see in browser IE/Firefox
--jsp file ---
" rel="stylesheet" type="text/css" media="screen">