i want to display an image on my jsp. The path of the image is stored in the database in varchar type. There is a servlet which fetch the path from the database and gives it to the jsp. so now the problem is how i will use that path in jsp to show that image. please help me.
Thanhx in advance.
ya i am using tomcat. can you please tell me how i can do so ? can you please give me any example..?
Joined: Jan 22, 2007
In the above example, physical path c:\\temp\imgService is mapped to /imageService so if you have a image named image1.jpg in c:\\temp\imgService , you can refer the same in
your html as http://localhost:8080/imageService/image1.jpg .
Note : Assuming you are running tomcat on localhost and on port 8080.