wood burning stoves 2.0*
The moose likes JSP and the fly likes JSP does not load images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP does not load images" Watch "JSP does not load images" New topic

JSP does not load images

alessandro panzeri

Joined: Sep 20, 2013
Posts: 1

I'm new to jsp 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?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60781

Read the JspFaq entries on this subject. You should be using server-relative URLs.

I also see no image tags. (Or are your images references within the CSS?)

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: JSP does not load images
Similar Threads
Struts help
can't find css, images and js static files
problem with server relative paths for images
Extension Mapping Not Working
Custom page 404 css not picked up due topath issue