How to display multiple images in jsp using a struts2? -


i getting images database , storing images in filepath( request.getsession().getservletcontext().getrealpath). having images in filepath.

then getting images filepath

private file[] filelist; 

now trying display filelist in jsp:

<s:iterator value="filelist">   <img src="<s:property />"/>              </s:iterator> 

output in browser getting filepath of images(i can iterate) images not loading.

if put <img> tag in <a> , click on link displaying "the address wasn't understood". if enter link slash "/" changing , image in displaying.

<s:iterator value="filelist">   <a href="<s:property />"/>     <img src="<s:property />"/>   </a> </s:iterator> 

in firebug showing "could not load image".

i may wrong in displaying image please how load image in jsp.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -