Are the images served out ok on other pages?

Images are not being served at all in any page.

This makes me think you have a configuration issue that is pointing all content to your servlet other than *.jsp.

Have you tried running Tomcat without Apache? And is there a reason you need Apache?

If you haven't disabled it or after reenabling it try your app on http://localhost:8080

If it still will not serve the pictures post your config files for Tomcat. Something is sending all the request for the images to your servlet or at least not allowing them to make it to the proper folder.


As a test can you serve out a static page from the same folder the gif is in?

In fact, I brought up the Tomcat index.jsp locally when only the webserver is running (without connection to the internet) and even that doesn't display the images.


Stick a JSP file in the image folder along with a html page and see if they will serve. If they will, but the image will not you have a config issue.


When you say it is making the round trip, please explain what or how you know this.

I am debugging the servlet and the connected java application. When the gif is included in the page, the process displays the page and comes right back to my break-point in the java code. When I remove the gif, the page waits for a user to respond (the way one would expect Http to behave) and comes back to my code only when I click on one of the buttons on the page.


I am taking this to mean the code of your servlet.



Is it possible that when you see the round trip, you are actually seeing the browser request for the image?

It is possible. Actually, that is what is may be happening. How can I make the browser not come to the servlet but go and pick up the file from the directory. I am using only one servlet (a single URL) and I route the process through request attribute in the HTTP request. I have done that with JBoss in the past and it worked fine. In this application, I am not using any app server.


I think there is a config in Apache to direct where the static resources are picked up from. I am not able to figure out where this configuration should be done for Tomcat. Or maybe it is not a configuration issue at all.


As I do not run Apache, I am lost when it comes to it's config files. But for now let's talk directly to Tomcat to take this out of the picture.



One last comment, you asked about serving static content in Tomcat, understand that the static items in the app are served from the same place as the jsps or subfolders. If you want several apps to use a common source of static content, such as the images, this is a whole different matter.


But for now lets put out one fire at a time.

Doug



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to