tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lindberg, Petrus" <>
Subject How to tell the web server where to look for images files
Date Tue, 15 Oct 2002 13:54:31 GMT
Hi all !

My java bean read a path to a image file from a database. 
The Image files is located according to the path from the DB on the same computer as the web
(this is running on Linux.)

I then want to show the image on a jsp page.

This is how it looks now in the .jsp file
<img src="<%= myBean.getImagePathFromDB()%>">

What path should I write as the src in the .jsp page 
The path I get from the DB is relative to the Linux root directory not to the web server

I suppose I have to set some path somewhere in some file to tell the web server where to look.

Anyone know how I solve this.

Thanks in advance. Petrus

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message