• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How dipsplay images in Struts

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a problem, I am reading a image from file system, then i want to write it to a page using struts technology.

To make it more simpler i have a button in my page each click of the button should generate a expected image.

Say button click generates a data =pie chart then i want to write pie chart in the page.

Anyidea for any body how to display an image after reading it from file system?

Thanks in advance !
Regards,
Sudhindra
sudhindrahs@rediffmail.com
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Same basic way as without Struts. Setup your app so that the image's URL invokes a servlet that copies the image file out to the client as a MIME image object.

Or, if you can bundle the image inside the webapp, the appserver does it for you just like any other html or jsp image reference.
 
reply
    Bookmark Topic Watch Topic
  • New Topic