Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying 100 blob images in JSP

 
Seenikkannan krishnasamy
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
 
Merrill Higginson
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.
 
Brent Sterling
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,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic