Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Displaying 100 blob images in JSP

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my requirement is

i have 100 blob images under shoes category..
can anyone tell me the code how to display the same in JSP
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a good link that tells you how to write a download action. There's also an example of this in the sruts-examples.war file that comes with the Struts download. Look at the org.apache.struts.webapp.exercise.ImageAction class.
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question is rather vague...but I might be able to help. If you need to display the images inline on the page, then you need to set the URL of each image to that of an action that will read the image out of the database and return that image. I developed such code a few years ago. The requirements changed and the code was no longer needed so it has not been used in a production environment but I do remember it working. Here is a slightly modified version of the action code:


- Brent
[ August 02, 2006: Message edited by: Brent Sterling ]
 
Seenikkannan krishnasamy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your valueable comments..
Requirement is

Dsiplaying the images like amazon.com where the will show image list clicking on category

Thanks again.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahhh...you got to love those types of requirements. In the client sever days the client always said "just make it work like Word/Excel" and now it is "just make it work like Amazon/eBay/Yahoo". I always wanted to grab the client, slap them and yell "that product took years to develop, cost millions of dollars and required teams of designers and developers...and you want me to do it in a week?!?!?"

- Brent
 
Seenikkannan krishnasamy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
:: ))

Your comments are funny;me too..waiting for client

thanks,
    Bookmark Topic Watch Topic
  • New Topic