Results 1 to 2 of 2
Thread: Images in JSP
- 06-05-2007, 05:57 AM #1
Member
- Join Date
- Jun 2007
- Posts
- 91
- Rep Power
- 0
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
- 06-05-2007, 07:01 AM #2
Senior Member
- Join Date
- Jun 2007
- Posts
- 114
- Rep Power
- 0
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
-
Comparing Images
By shaungoater in forum Advanced JavaReplies: 0Last Post: 03-17-2008, 11:38 AM -
How to add Images to JPanels?
By Soda in forum New To JavaReplies: 3Last Post: 12-08-2007, 06:54 PM -
Images not displaying in JSP in IE7
By chadscc in forum Advanced JavaReplies: 0Last Post: 11-13-2007, 04:24 PM -
Help using images in Java
By toby in forum Advanced JavaReplies: 1Last Post: 08-07-2007, 06:54 AM -
Help with images...
By toby in forum Java AppletsReplies: 1Last Post: 08-04-2007, 06:25 AM
Bookmarks