Hi, I've developed a web appln which is being deployed in Sun One App Server 7. And while deploying I gave the context-root as /Test and I'm invoking the login jsp page using a Controller servlet. The issue is the images are not loading when the page loads. Should there be any entry be made in the web.xml for images alone ? below is the entry from the server.xml.
Thanks for the reply... Actually the controller doesnt do anything for the images. It just forwards the request to other JavaBeans, Database access objects.. I'm just calling the images in the jsp's as, <img src="hud_seal.gif">
If you're going to have your controller servlet intercept ALL requests than you are going to have to write your own code to stream the images. This isn't difficult. If you want an example look at http://simple.souther.us/SimpleStream.war.
I would argue, however, that if your app isn't about streaming images, and you're not adding any functionality, other than what the default servlet would do, don't intercept all requests with your controller.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com