View Single Post
  #1 (permalink)  
Old April 21st, 2006, 05:35 AM
Inderjeet Inderjeet is offline
Registered User
Join Date: Oct 2004
Location: , , .
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default 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

Reply With Quote