Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

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