This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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="" />

<link rel="stylesheet" href="" />

<c:import url="" />

<link href="" 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: 60766

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:
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