Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image loading problem

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm trying to load an image from a servlet. However, the image won't load... When I try to invoke the servlet URL on the browser, it does load... But within the <img> tag, it doesn't... What could be wrong? Here's my Action class...




and here's my JSP...




Please help... Thanks!
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you get a missing image icon in your browser (a red X in IE I think). If so, right click on that and check the properties (or view source). Does the full URL look correct? Have you tried using the html:img tag and using the page property? This will prepend the context path to the URL.

- Brent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic