java - Displaying images in jsf -
im having strange problem of displaying image in jsf. have images on server in folder: /glassfishv3/glassfish/domains/domain1/applications/images.
i have full access folder, can upload , delete images through bean , works fine when try display images, nothing shows! have tried following:
<h:graphicimage value="/images/image.jpg"/> <h:graphicimage value="/glassfishv3/glassfish/domains/domain1/applications/images/image.jpg"/> <img src="/glassfishv3/glassfish/domains/domain1/applications/images/image.jpg">
but nothing seems work. not sure im doing wrong here welcome. big thx in advance
looks images being hosted separately,
<h:graphicimage url="<urlpath>/images/image.jpg" width="200" height="171" />
e.g.
<h:graphicimage url="http://localhost:8080/images/image.jpg" width="200" height="171" />
Comments
Post a Comment