users@glassfish.java.net

where to place images in application using glassfish

From: Eve Pokua <gorgeous65_at_msn.com>
Date: Tue, 22 Sep 2009 15:39:58 +0100

Hello,

 

I want to be able to pipe my images for my application.

 

In tomcat, i would do something like the following:

 


 
if your jsp page is at /ROOT/jsps/mydisply.jsp and images
are in /ROOT/images I can construct a <display:column> tag:
 
<display:column>
<img src="../images/${bpic}"/>
</display:column>

 

Now where to I place my images using glassfish.

 

I assum in my web-inf folder of my application

 

then I can access it as follows:

 

 

<display:column><img border="1" src="/WEB-INF/${bpic}" height="200" width="200" title="Bale Picture"/></display:column>

 

bpic is a string coming from my DB table.

 

The img tag would then show it as image as the file it is refering to

is an image.

 

I am able to run the application and access it in the browser but

the picture is not showing. It is showing x mark.

 

please, reply

 

eve

 


 
                                                _________________________________________________________________ Get the best of MSN on your mobile http://clk.atdmt.com/UKM/go/147991039/direct/01/