Hi all, before to start, i want say sorry for my bad english. I am developing an easy social network for a university project
Every User has an image for the profile. I want to list all friends, and i want display Name, Surname and the image. So i have an action that retrieve the list of friends: public String list() { Utente utente; utente = (Utente) session .get(AuthenticationInterceptor.authenticationSessionField); utenteDao.update(utente.getId()); setListaAmici(utente.getListaAmici()); System.out.println("total friends: " + listaAmici.size()); return SUCCESS; } Now I have a list of Users. So in my jsp: friends : <s:property value="listaAmici.size" /> <br /> <s:iterator value="listaAmici" var="amico"> <s:url value="%{#amico.fotoProfilo.path}" /> <img src="" width="200" /> <s:property value="#amico.nome" /> <s:property value="#amico.cognome" /> </s:iterator> I don't know how do it! The database save the name of the image. Sorry for my bad english. Thanks Fabio