Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

displaying image + JSP

 
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ???
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic