The moose likes Other Open Source Projects and the fly likes jetty issue with images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "jetty issue with images" Watch "jetty issue with images" New topic

jetty issue with images

Jason Kretzer
Ranch Hand

Joined: May 31, 2001
Posts: 280
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?

Jason R. Kretzer<br />Software Engineer<br />System Administrator<br /><a href="" target="_blank" rel="nofollow"></a>
It is sorta covered in the JavaRanch Style Guide.
subject: jetty issue with images
jQuery in Action, 3rd edition