CSS JSP does not display background image

I have the following directory structure

structurehttp://img853.imageshack.us/img853/7092/96816871.jpg

My CSS is trying to use an image as a background

#search-text {
width: 213px;
height: 28px;
padding: 6px 0 0 7px;
border: none;
background: url(../images/img02.jpg) no-repeat left top;
color: #000000;

}

and it does not work while other parts of css work fine.

Firebug shows that the application is trying to access the image at the URL _http: // localhost: 8080 / images / img02.jpg and receives a 404 error

When I try to access the image directly, I also get this error. Also I tried _http: // local: 8080 / paygate / image / img02.jpg _http: // local: 8080 / paygate / resources / image / img02.jpg ... and this error does not stop following me.

When I changed my CSS file to the next

background: url(images/img02.jpg) no-repeat left top;
A warning appeared in the web server log

:

WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/paygate/images/img02.jpg] in DispatcherServlet with name 'appServlet'

Firebug 404 URL- _http://localhost: 8080/ paygate/images/img02.jpg

, . 'S!

P.S. springsource tc -.

+3
2

.css , So:

background: url(images/img02.jpg) no-repeat left top;

.

+2

. , URL- / /* -, . . Spring URL, . /app/* *.html . URL-, , /static, Filter, - Spring.

. :

+2
source

All Articles