Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

JSP - Display image only if exists

  • 27-11-2008 11:44AM
    #1
    Registered Users, Registered Users 2 Posts: 1,477 ✭✭✭


    Does anyone know if there is a way to display a link to an image file in a JSP page but only if the image exists?

    I am pulling some information from a database via my jsp file and I then build a web link with an img. However, not all off the elements have images attached and the resulting webpage displays the spacer where the image should be and looks pretty bad.

    Anyone know a way around this?


Comments

Advertisement