Results 1 to 2 of 2

Thread: Images in JSP

  1. #1
    Daniel is offline Member
    Join Date
    Jun 2007
    Posts
    91
    Rep Power
    0

    Default Images in JSP

    I have an application in java, with ejbs and struts. This application shows to a certain list of people and its dates of birthday, each person has a Link where I can go to his details, where it must have a photo.
    My problem is that not all people have photo, my doubt is:

    Does exist some tag? or some way to go to ask if that photo is in a directory and if this not to show a photo by defect?

    Daniel

  2. #2
    Albert is offline Senior Member
    Join Date
    Jun 2007
    Posts
    114
    Rep Power
    0

    Default RE: Images in JSP

    Hi daniel, the file class has the method exists() that returns to you a boolean if this file exists or doesn't
    File (Java 2 Platform SE v1.4.2)

    please consider this link, you can say that your persons has an image, maybe default,(saved in somewhere)

    I have been worked like this but in ddbb I'v saved the url of the image.

    Really I don't know what will happen if you load the images in the ddbb more than one time

    Albert:rolleyes:

Similar Threads

  1. Comparing Images
    By shaungoater in forum Advanced Java
    Replies: 0
    Last Post: 03-17-2008, 11:38 AM
  2. How to add Images to JPanels?
    By Soda in forum New To Java
    Replies: 3
    Last Post: 12-08-2007, 06:54 PM
  3. Images not displaying in JSP in IE7
    By chadscc in forum Advanced Java
    Replies: 0
    Last Post: 11-13-2007, 04:24 PM
  4. Help using images in Java
    By toby in forum Advanced Java
    Replies: 1
    Last Post: 08-07-2007, 06:54 AM
  5. Help with images...
    By toby in forum Java Applets
    Replies: 1
    Last Post: 08-04-2007, 06:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •