You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Amol Ghotankar <gh...@gmail.com> on 2010/06/20 13:04:44 UTC

Jasper Report Problem in HTML format

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 <el...@gmail.com>wrote:

> <img src="<s:property value="%{idOfsUrl}" />" />
>
> Brian
>
> On Jun 19, 2010 5:01 AM, "Fabio Perfetti" <pe...@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
>

Re: Jasper Report Problem in HTML format

Posted by suhaib999 <su...@gmail.com>.
Hi I am into the same problem, images not getting displayed

The link you refer and got it to work, how does this fit inside the struts
action class code.

In my action I am returning "success", where do you put the below code,
where is the method
buildDataStore() defined in which class..? 


------------------------------------------------------------------------
The workaround is to return the JasperReportsResult directly from the action
class e.g.

public Result generateHTML() throws Exception {
buildDataStore();
JasperReportsResult result = new JasperReportsResult();
result.setLocation("WEB-INF/classes/jasper/our_jasper_template.jasper");
result = result.setDataSource("myList");
result = result.setFormat("HTML");
result = result.setImageServletUrl("/servlets/image?image=");
return result;
}

--
View this message in context: http://struts.1045723.n5.nabble.com/Jasper-Report-Problem-in-HTML-format-tp3474975p5669906.html
Sent from the Struts - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Jasper Report Problem in HTML format

Posted by Amol Ghotankar <gh...@gmail.com>.
Dear List memebers,

I tried it, but it was given error.............

Error is in struts 2.0.x as bug

the work around is mentioned on the following link

https://issues.apache.org/jira/browse/WW-2324?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel

And IT WORKS.........


On Mon, Jun 21, 2010 at 11:55 PM, Celinio Fernandes <ce...@yahoo.com>wrote:

> Hi,
> I ran into the same problem a while ago.
>
> The JasperReports plugin works with a servlet to
>  display the images.
> The attribute to add is imageServletUrl  :
>
>
>  <param
> name="imageServletUrl">/servlets/image?image=</param>
>
> Of
>  course you need to declare that servlet in your web.xml :
>
> <servlet>
>
>    <servlet-name>ImageServlet</servlet-name>
>
>
> <servlet-class>net.sf.jasperreports.j2ee.servlets.ImageServlet</servlet-class>
>
>  </servlet>
>   <servlet-mapping>
>
> <servlet-name>ImageServlet</servlet-name>
>
> <url-pattern>/servlets/image</url-pattern>
>
> </servlet-mapping>
>
> HTH
> Best regards,
> Celinio
> Fernandes
>
> --- On Mon, 6/21/10, Amol Ghotankar <gh...@gmail.com> wrote:
>
> From: Amol Ghotankar <gh...@gmail.com>
> Subject: Re: Jasper Report Problem in HTML format
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Date: Monday, June 21, 2010, 9:25 AM
>
> Yes it could be path issue, but the images point to the images folder in
> web
> content.
>
> No images are generated in my case as I have searched them everywhere.
>
> Where are the images generally kept when using jasper reports in html
> format
> using struts2.
>
> On Mon, Jun 21, 2010 at 5:55 PM, Rahul Mohan <ra...@tcs.com> wrote:
>
> > Looks like its a path issue. Please see if the image tags in the
> generated
> > HTML point to the proper URL for images.
> >
> >
> >
> >
> > From:
> > Amol Ghotankar <gh...@gmail.com>
> > To:
> > Struts Users Mailing List <us...@struts.apache.org>
> > Date:
> > 21-06-2010 17:21
> > Subject:
> > Re: Jasper Report Problem in HTML format
> >
> >
> >
> > Dear List members,
> >
> > My problem is still not resolved.
> >
> > I am not able to show jasper reports in html format in struts 2.
> >
> > The images that are generated in html format are missing.
> >
> > Please help me on it.
> >
> > Regards,
> >
> > Amol ghotankar
> >
> > On Sun, Jun 20, 2010 at 11:56 PM, Amol Ghotankar
> > <gh...@gmail.com>wrote:
> >
> > > As per my knowleadge they are not getting generated properly, as i
> tried
> > to
> > > search them on all possible folders, evern via searching in my
> computer.
> > >
> > > Has anyone tried jasper reports in html format before?
> > >
> > > PDF & XLS working perfectly fine and images are generated and displayed
> > > there with no problem.
> > >
> > > Please let me know if its problem in struts or jasper or my project, so
> > > that my efforts will get some direction.
> > >
> > >
> > >
> > > On Sun, Jun 20, 2010 at 6:59 PM, Brian Thompson
> > <el...@gmail.com>wrote:
> > >
> > >> Are the images saved as temp files and accessed as files through
> > tomcat,
> > >> or
> > >> are they generated on access by something like /getImage.action?
> > >>
> > >> On Jun 20, 2010 6:12 AM, "Amol Ghotankar" <gh...@gmail.com>
> > >> wrote:
> > >>
> > >> Dear List members,
> > >>
> > >> When I try to see the HTML page it shows path of images as
> > >> src="/images/px"
> > >>
> > >> But in web content images folder no such images are created, nor they
> > are
> > >> created any where on my disk.
> > >>
> > >> Does this means that their is a bug in Struts 2 that it does not
> > properly
> > >> create images required for report for HTML format.
> > >>
> > >> Other formats like pdf, xls work perfectly fine.
> > >>
> > >> Generally where are these images stored??? In temp dir or in tomcat
> > server
> > >> or in project dir or somewhere else on disk. Can we change it.
> > >>
> > >> I am trying it very hard but not able to get any solution as images
> are
> > >> created dynamically.
> > >>
> > >>
> > >>
> > >> On Sun, Jun 20, 2010 at 4:34 PM, Amol Ghotankar
> > <ghotankarua50@gmail.com
> > >> >wrote:
> > >>
> > >>
> > >> > Dear List members,
> > >> >
> > >> > I have successfully embedded jasper reports with struts 2, thanks to
> > the
> > >> >...
> > >>
> > >
> > >
> >
> >
> > =====-----=====-----=====
> > Notice: The information contained in this e-mail
> > message and/or attachments to it may contain
> > confidential or privileged information. If you are
> > not the intended recipient, any dissemination, use,
> > review, distribution, printing or copying of the
> > information contained in this e-mail message
> > and/or attachments to it are strictly prohibited. If
> > you have received this communication in error,
> > please notify us by reply e-mail or telephone and
> > immediately and permanently delete the message
> > and any attachments. Thank you
> >
> >
> >
>
>
>
>
>

Re: Jasper Report Problem in HTML format

Posted by Celinio Fernandes <ce...@yahoo.com>.
Hi,
I ran into the same problem a while ago.

The JasperReports plugin works with a servlet to
 display the images.
The attribute to add is imageServletUrl  :


 <param 
name="imageServletUrl">/servlets/image?image=</param>  

Of
 course you need to declare that servlet in your web.xml :

<servlet>
 
   <servlet-name>ImageServlet</servlet-name>
    
<servlet-class>net.sf.jasperreports.j2ee.servlets.ImageServlet</servlet-class>
 
 </servlet>
  <servlet-mapping>
    
<servlet-name>ImageServlet</servlet-name>
    
<url-pattern>/servlets/image</url-pattern>
  
</servlet-mapping>

HTH
Best regards,
Celinio 
Fernandes

--- On Mon, 6/21/10, Amol Ghotankar <gh...@gmail.com> wrote:

From: Amol Ghotankar <gh...@gmail.com>
Subject: Re: Jasper Report Problem in HTML format
To: "Struts Users Mailing List" <us...@struts.apache.org>
Date: Monday, June 21, 2010, 9:25 AM

Yes it could be path issue, but the images point to the images folder in web
content.

No images are generated in my case as I have searched them everywhere.

Where are the images generally kept when using jasper reports in html format
using struts2.

On Mon, Jun 21, 2010 at 5:55 PM, Rahul Mohan <ra...@tcs.com> wrote:

> Looks like its a path issue. Please see if the image tags in the generated
> HTML point to the proper URL for images.
>
>
>
>
> From:
> Amol Ghotankar <gh...@gmail.com>
> To:
> Struts Users Mailing List <us...@struts.apache.org>
> Date:
> 21-06-2010 17:21
> Subject:
> Re: Jasper Report Problem in HTML format
>
>
>
> Dear List members,
>
> My problem is still not resolved.
>
> I am not able to show jasper reports in html format in struts 2.
>
> The images that are generated in html format are missing.
>
> Please help me on it.
>
> Regards,
>
> Amol ghotankar
>
> On Sun, Jun 20, 2010 at 11:56 PM, Amol Ghotankar
> <gh...@gmail.com>wrote:
>
> > As per my knowleadge they are not getting generated properly, as i tried
> to
> > search them on all possible folders, evern via searching in my computer.
> >
> > Has anyone tried jasper reports in html format before?
> >
> > PDF & XLS working perfectly fine and images are generated and displayed
> > there with no problem.
> >
> > Please let me know if its problem in struts or jasper or my project, so
> > that my efforts will get some direction.
> >
> >
> >
> > On Sun, Jun 20, 2010 at 6:59 PM, Brian Thompson
> <el...@gmail.com>wrote:
> >
> >> Are the images saved as temp files and accessed as files through
> tomcat,
> >> or
> >> are they generated on access by something like /getImage.action?
> >>
> >> On Jun 20, 2010 6:12 AM, "Amol Ghotankar" <gh...@gmail.com>
> >> wrote:
> >>
> >> Dear List members,
> >>
> >> When I try to see the HTML page it shows path of images as
> >> src="/images/px"
> >>
> >> But in web content images folder no such images are created, nor they
> are
> >> created any where on my disk.
> >>
> >> Does this means that their is a bug in Struts 2 that it does not
> properly
> >> create images required for report for HTML format.
> >>
> >> Other formats like pdf, xls work perfectly fine.
> >>
> >> Generally where are these images stored??? In temp dir or in tomcat
> server
> >> or in project dir or somewhere else on disk. Can we change it.
> >>
> >> I am trying it very hard but not able to get any solution as images are
> >> created dynamically.
> >>
> >>
> >>
> >> On Sun, Jun 20, 2010 at 4:34 PM, Amol Ghotankar
> <ghotankarua50@gmail.com
> >> >wrote:
> >>
> >>
> >> > Dear List members,
> >> >
> >> > I have successfully embedded jasper reports with struts 2, thanks to
> the
> >> >...
> >>
> >
> >
>
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>



      

Re: Jasper Report Problem in HTML format

Posted by Amol Ghotankar <gh...@gmail.com>.
Yes it could be path issue, but the images point to the images folder in web
content.

No images are generated in my case as I have searched them everywhere.

Where are the images generally kept when using jasper reports in html format
using struts2.

On Mon, Jun 21, 2010 at 5:55 PM, Rahul Mohan <ra...@tcs.com> wrote:

> Looks like its a path issue. Please see if the image tags in the generated
> HTML point to the proper URL for images.
>
>
>
>
> From:
> Amol Ghotankar <gh...@gmail.com>
> To:
> Struts Users Mailing List <us...@struts.apache.org>
> Date:
> 21-06-2010 17:21
> Subject:
> Re: Jasper Report Problem in HTML format
>
>
>
> Dear List members,
>
> My problem is still not resolved.
>
> I am not able to show jasper reports in html format in struts 2.
>
> The images that are generated in html format are missing.
>
> Please help me on it.
>
> Regards,
>
> Amol ghotankar
>
> On Sun, Jun 20, 2010 at 11:56 PM, Amol Ghotankar
> <gh...@gmail.com>wrote:
>
> > As per my knowleadge they are not getting generated properly, as i tried
> to
> > search them on all possible folders, evern via searching in my computer.
> >
> > Has anyone tried jasper reports in html format before?
> >
> > PDF & XLS working perfectly fine and images are generated and displayed
> > there with no problem.
> >
> > Please let me know if its problem in struts or jasper or my project, so
> > that my efforts will get some direction.
> >
> >
> >
> > On Sun, Jun 20, 2010 at 6:59 PM, Brian Thompson
> <el...@gmail.com>wrote:
> >
> >> Are the images saved as temp files and accessed as files through
> tomcat,
> >> or
> >> are they generated on access by something like /getImage.action?
> >>
> >> On Jun 20, 2010 6:12 AM, "Amol Ghotankar" <gh...@gmail.com>
> >> wrote:
> >>
> >> Dear List members,
> >>
> >> When I try to see the HTML page it shows path of images as
> >> src="/images/px"
> >>
> >> But in web content images folder no such images are created, nor they
> are
> >> created any where on my disk.
> >>
> >> Does this means that their is a bug in Struts 2 that it does not
> properly
> >> create images required for report for HTML format.
> >>
> >> Other formats like pdf, xls work perfectly fine.
> >>
> >> Generally where are these images stored??? In temp dir or in tomcat
> server
> >> or in project dir or somewhere else on disk. Can we change it.
> >>
> >> I am trying it very hard but not able to get any solution as images are
> >> created dynamically.
> >>
> >>
> >>
> >> On Sun, Jun 20, 2010 at 4:34 PM, Amol Ghotankar
> <ghotankarua50@gmail.com
> >> >wrote:
> >>
> >>
> >> > Dear List members,
> >> >
> >> > I have successfully embedded jasper reports with struts 2, thanks to
> the
> >> >...
> >>
> >
> >
>
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>

Re: Jasper Report Problem in HTML format

Posted by Rahul Mohan <ra...@tcs.com>.
Looks like its a path issue. Please see if the image tags in the generated 
HTML point to the proper URL for images. 




From:
Amol Ghotankar <gh...@gmail.com>
To:
Struts Users Mailing List <us...@struts.apache.org>
Date:
21-06-2010 17:21
Subject:
Re: Jasper Report Problem in HTML format



Dear List members,

My problem is still not resolved.

I am not able to show jasper reports in html format in struts 2.

The images that are generated in html format are missing.

Please help me on it.

Regards,

Amol ghotankar

On Sun, Jun 20, 2010 at 11:56 PM, Amol Ghotankar 
<gh...@gmail.com>wrote:

> As per my knowleadge they are not getting generated properly, as i tried 
to
> search them on all possible folders, evern via searching in my computer.
>
> Has anyone tried jasper reports in html format before?
>
> PDF & XLS working perfectly fine and images are generated and displayed
> there with no problem.
>
> Please let me know if its problem in struts or jasper or my project, so
> that my efforts will get some direction.
>
>
>
> On Sun, Jun 20, 2010 at 6:59 PM, Brian Thompson 
<el...@gmail.com>wrote:
>
>> Are the images saved as temp files and accessed as files through 
tomcat,
>> or
>> are they generated on access by something like /getImage.action?
>>
>> On Jun 20, 2010 6:12 AM, "Amol Ghotankar" <gh...@gmail.com>
>> wrote:
>>
>> Dear List members,
>>
>> When I try to see the HTML page it shows path of images as
>> src="/images/px"
>>
>> But in web content images folder no such images are created, nor they 
are
>> created any where on my disk.
>>
>> Does this means that their is a bug in Struts 2 that it does not 
properly
>> create images required for report for HTML format.
>>
>> Other formats like pdf, xls work perfectly fine.
>>
>> Generally where are these images stored??? In temp dir or in tomcat 
server
>> or in project dir or somewhere else on disk. Can we change it.
>>
>> I am trying it very hard but not able to get any solution as images are
>> created dynamically.
>>
>>
>>
>> On Sun, Jun 20, 2010 at 4:34 PM, Amol Ghotankar 
<ghotankarua50@gmail.com
>> >wrote:
>>
>>
>> > Dear List members,
>> >
>> > I have successfully embedded jasper reports with struts 2, thanks to 
the
>> >...
>>
>
>


=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



Re: Jasper Report Problem in HTML format

Posted by Amol Ghotankar <gh...@gmail.com>.
Dear List members,

My problem is still not resolved.

I am not able to show jasper reports in html format in struts 2.

The images that are generated in html format are missing.

Please help me on it.

Regards,

Amol ghotankar

On Sun, Jun 20, 2010 at 11:56 PM, Amol Ghotankar <gh...@gmail.com>wrote:

> As per my knowleadge they are not getting generated properly, as i tried to
> search them on all possible folders, evern via searching in my computer.
>
> Has anyone tried jasper reports in html format before?
>
> PDF & XLS working perfectly fine and images are generated and displayed
> there with no problem.
>
> Please let me know if its problem in struts or jasper or my project, so
> that my efforts will get some direction.
>
>
>
> On Sun, Jun 20, 2010 at 6:59 PM, Brian Thompson <el...@gmail.com>wrote:
>
>> Are the images saved as temp files and accessed as files through tomcat,
>> or
>> are they generated on access by something like /getImage.action?
>>
>> On Jun 20, 2010 6:12 AM, "Amol Ghotankar" <gh...@gmail.com>
>> wrote:
>>
>> Dear List members,
>>
>> When I try to see the HTML page it shows path of images as
>> src="/images/px"
>>
>> But in web content images folder no such images are created, nor they are
>> created any where on my disk.
>>
>> Does this means that their is a bug in Struts 2 that it does not properly
>> create images required for report for HTML format.
>>
>> Other formats like pdf, xls work perfectly fine.
>>
>> Generally where are these images stored??? In temp dir or in tomcat server
>> or in project dir or somewhere else on disk. Can we change it.
>>
>> I am trying it very hard but not able to get any solution as images are
>> created dynamically.
>>
>>
>>
>> On Sun, Jun 20, 2010 at 4:34 PM, Amol Ghotankar <ghotankarua50@gmail.com
>> >wrote:
>>
>>
>> > Dear List members,
>> >
>> > I have successfully embedded jasper reports with struts 2, thanks to the
>> >...
>>
>
>

Re: Jasper Report Problem in HTML format

Posted by Amol Ghotankar <gh...@gmail.com>.
As per my knowleadge they are not getting generated properly, as i tried to
search them on all possible folders, evern via searching in my computer.

Has anyone tried jasper reports in html format before?

PDF & XLS working perfectly fine and images are generated and displayed
there with no problem.

Please let me know if its problem in struts or jasper or my project, so that
my efforts will get some direction.


On Sun, Jun 20, 2010 at 6:59 PM, Brian Thompson <el...@gmail.com>wrote:

> Are the images saved as temp files and accessed as files through tomcat, or
> are they generated on access by something like /getImage.action?
>
> On Jun 20, 2010 6:12 AM, "Amol Ghotankar" <gh...@gmail.com> wrote:
>
> Dear List members,
>
> When I try to see the HTML page it shows path of images as src="/images/px"
>
> But in web content images folder no such images are created, nor they are
> created any where on my disk.
>
> Does this means that their is a bug in Struts 2 that it does not properly
> create images required for report for HTML format.
>
> Other formats like pdf, xls work perfectly fine.
>
> Generally where are these images stored??? In temp dir or in tomcat server
> or in project dir or somewhere else on disk. Can we change it.
>
> I am trying it very hard but not able to get any solution as images are
> created dynamically.
>
>
>
> On Sun, Jun 20, 2010 at 4:34 PM, Amol Ghotankar <ghotankarua50@gmail.com
> >wrote:
>
>
> > Dear List members,
> >
> > I have successfully embedded jasper reports with struts 2, thanks to the
> >...
>

Re: Jasper Report Problem in HTML format

Posted by Brian Thompson <el...@gmail.com>.
Are the images saved as temp files and accessed as files through tomcat, or
are they generated on access by something like /getImage.action?

On Jun 20, 2010 6:12 AM, "Amol Ghotankar" <gh...@gmail.com> wrote:

Dear List members,

When I try to see the HTML page it shows path of images as src="/images/px"

But in web content images folder no such images are created, nor they are
created any where on my disk.

Does this means that their is a bug in Struts 2 that it does not properly
create images required for report for HTML format.

Other formats like pdf, xls work perfectly fine.

Generally where are these images stored??? In temp dir or in tomcat server
or in project dir or somewhere else on disk. Can we change it.

I am trying it very hard but not able to get any solution as images are
created dynamically.



On Sun, Jun 20, 2010 at 4:34 PM, Amol Ghotankar <ghotankarua50@gmail.com
>wrote:


> Dear List members,
>
> I have successfully embedded jasper reports with struts 2, thanks to the
>...

Re: Jasper Report Problem in HTML format

Posted by Amol Ghotankar <gh...@gmail.com>.
Dear List members,

When I try to see the HTML page it shows path of images as src="/images/px"

But in web content images folder no such images are created, nor they are
created any where on my disk.

Does this means that their is a bug in Struts 2 that it does not properly
create images required for report for HTML format.

Other formats like pdf, xls work perfectly fine.

Generally where are these images stored??? In temp dir or in tomcat server
or in project dir or somewhere else on disk. Can we change it.

I am trying it very hard but not able to get any solution as images are
created dynamically.



On Sun, Jun 20, 2010 at 4:34 PM, Amol Ghotankar <gh...@gmail.com>wrote:

> 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 <el...@gmail.com>wrote:
>
>> <img src="<s:property value="%{idOfsUrl}" />" />
>>
>> Brian
>>
>> On Jun 19, 2010 5:01 AM, "Fabio Perfetti" <pe...@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
>>
>
>