File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
JSP does not load images
Joined: Sep 20, 2013
Sep 20, 2013 06:50:28
I'm new to
and I modified a .jsp file by adding the lines below since I need to give to the
.jsp page a certain grafical appearance:
<link rel="stylesheet" href="https://someserver.com/er_base.css" />
<link rel="stylesheet" href="https://someserver.com/er_colors.css" />
<c:import url="https://thisserver.com/static_files/TemplatesER/stylesheets.txt" />
<link href="https://thisserver.com/static_files/TemplatesER/graficaMinimale.css" type="text/css" rel="stylesheet"/>
The problem is that when I load the page, there are many colors and images missing.
Note that all the links above are valid when I put them in the browser address bar.
What have I done wrong?
Author and ninkuma
Joined: Jan 10, 2002
Sep 20, 2013 08:25:52
entries on this subject. You should be using server-relative URLs.
I also see no
tags. (Or are your images references within the CSS?)
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: JSP does not load images
can't find css, images and js static files
Extension Mapping Not Working
Custom page 404 css not picked up due topath issue
problem with server relative paths for images
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015