|
Subject:
|
Display 'no photo' in a JSP when photo is not pres
|
|
Posted By:
|
Inderjeet
|
Post Date:
|
4/21/2006 5:35:38 AM
|
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
|
|