• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP does not load images

 
alessandro panzeri
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic