Dear List members, I have successfully embedded jasper reports with struts 2, thanks to the documentation.
Only major problem that i am facing is when I give format as HTML in xml file, the html page opens but the images are not found. What can be done so that the path of images will be taken correctly. I tried a lot but I am not successful. Please help urgently. On Sun, Jun 20, 2010 at 2:44 AM, Brian Thompson <elephant...@gmail.com>wrote: > <img src="<s:property value="%{idOfsUrl}" />" /> > > Brian > > On Jun 19, 2010 5:01 AM, "Fabio Perfetti" <perfabi...@gmail.com> wrote: > > 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 >