• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

displaying image + JSP

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i have created one blog, in which when i display perticuler topic, i have written following code to display image...



in the code i'm using img src to display image.. image is getting display perfactly but the problem is that when there is no image i.e in case when the blogger has not uploaded image... it is displaying red cross.

i dont want to display that red cross, (Source/image not found)

How do i do that ???
 
Roberston Guillaume
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the red cross mean the image don't exist

the easyer way to avoid that is
When a topic is created : create an image with a "default" value a default icone(ie copy a default image as the topic image)


So If the user don't upload image for this topic it will display the default image

the default image can be a blank(transparent) one if you want no picture
[ April 05, 2007: Message edited by: Roberston Guillaume ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic