p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Pro JSP (http://p2p.wrox.com/forumdisplay.php?f=93)
-   -   Display 'no photo' in a JSP when photo is not pres (http://p2p.wrox.com/showthread.php?t=41566)

Inderjeet April 21st, 2006 05:35 AM

Display 'no photo' in a JSP when photo is not pres
 
Hi All

I have stored an image in database uploaded from the JSP. The DB has a BLOB column for the image. I have to display a single record at a time. I am able to display the image at the JSP also using <img> tag and specifying the JSP name fetching the image as the src attribute of the <img> tag.
My doubt is, if the image is not uploaded for that record how to display some error message(like 'No Photo Uploaded') on the JSP page? and how can we also supply a link to upload the photo, if already not uploaded. Since I am displaying the image as a part of another JSP having an <img> tag to display the image.

Could someone please help me??

Thanks & Regards
Inder Jeet Singh



All times are GMT -4. The time now is 05:47 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.