• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jetty issue with images

 
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
Another so simple, I can't see the answer type of question. I would like to use Jetty as a standalone server. I have managed to get it running with my added context. I am using a context that I brought over from an Apache/Tomcat setup. I just dropped it right in and it worked except for one thing. The images I need don't show up. In my servlet code, I use the following type of line to get the images

This worked on the Apache/Tomcat because the gif was located in apache/htdocs/images. I was wondering where in Jetty I must place the images directory to get it to work as coded above?
I have tried in the top Jetty directory, in the same directory as my WEB-INF, the top level / root directory, and in the WEB-INF/classes where my other classes are.
Any ideas?
Thanks!
-Jason
 
When I was younger I felt like a man trapped inside a woman’s body. Then I was born. My twin is a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic