my dog learned polymorphism
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 REST with Spring (video course) this week in the Spring 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: 9

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

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] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: JSP does not load images
It's not a secret anymore!