Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

How to display a dynamic image along with other fields

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends..
I have to display a image in jsp page along with other fields using struts.
i.e.,I am reading a employee details along with his/her image and storing in the database,i known how to store and read a image from database,but i am unable to display image with other fields.
Please give me suggestion how to display a image using Action class,if possible give me code.

Thanks,
Siva
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you search the web you'll find many responses to similar questions. The nutshell version is that you create an action that streams the image bytes to the response and return null to indicate that the action has handled the response.

http://letmegooglethatforyou.com/?q=display+image+with+struts+action
 
reply
    Bookmark Topic Watch Topic
  • New Topic