This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Displaying 100 blob images in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Displaying 100 blob images in JSP" Watch "Displaying 100 blob images in JSP" New topic
Author

Displaying 100 blob images in JSP

Seenikkannan krishnasamy
Greenhorn

Joined: Jan 25, 2006
Posts: 15
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

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
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

Joined: Jan 25, 2006
Posts: 15
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

Joined: Feb 08, 2006
Posts: 948
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

Joined: Jan 25, 2006
Posts: 15
:: ))

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

thanks,
 
jQuery in Action, 2nd edition
 
subject: Displaying 100 blob images in JSP
 
Similar Threads
Display of images in JSP
inserting images into an oracle database
upload large files into Oracle Blob or CLOB
Displaying blob images from database using sevlets:)
Process Blob ResultSet