Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Image problem with JSP  RSS feed

 
Abiodun Okusolubo
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out this simple jsp code,

<img src="tomcat.gif"> <br>
<img src="header.gif"> <br>
<img src="jakarta-logo.gif"> <br>

The irony is I created the header.gif using paint, the other two gifs were copied from tomcat examples. The problem here is I can't load any image I create except those copied from tomcat examples. I also created images using adobe photoshop, still no way around it.

However, when run the same code in html, exactly the same situation.

Is there anything I am doing wrongly or is there anything about how tomcat reads images that is not specify in the Headfirst servletandjsp text book I am using.
However, the servlet version I'm using is version 5.0.

Any advice will be welcome

Thank you.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the HTML/Javascript forum.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!