i am using trying to display an image on my starting screen but i am not able to see the image on the browser. The Jpg image file and the jsp in which i want to how the image are in the same folder (web-app/Pro)Pro is my Project name.Bur still i am unable to get the image.
<img src="Header.jsp" height="300"/>
Header.jsp is the jsp in which i want to show the image. i am using Dreamweaver to make the jsp and it is display the image on it but when i run the tomcat and view the Webpage its giving a blank screen. [ October 14, 2008: Message edited by: Bear Bibeault ]
you can actually have the src parameter of an image tage point off to another jsp
That's not a good idea. It may work in certain circumstances, but there are servlet containers where it simply will not work. You just shouldn't use JSPs for binary content. It's bad design to have Java code in JSPs, anyway.
Hi! I use a servlet to get image data from db and write image on page. on tomcat it runs very well but on OAS it doesn't works. I think that i need to set something like url-patterns in web.xml but I can't find out what. Any ideas?