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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -