This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Remember paths of stuff in your WAR file is relative.
So if you images are stored in /images in your WAR file, you could use the following to display an image on a .jsp:
<% // put your code to retrieve the filename from the db here // lets assume you put it in a String called "filename": filename = "myimage.jpg"; %> <img src="/<%=request.getContextPath%>/images/<%=filename%>"> [ September 27, 2005: Message edited by: Scheepers de Bruin ]
We're doomed!!<br />Yay!!!<br />No that's bad Girr!!<br />Yay!!!