fetching all images
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   alwin_d
Posted On:   Wednesday, April 18, 2007 01:49 AM

Hi,
I have some images in one folder.How can i fetch all those images through java code, so that i can display those images in my page..please help me..Thanks in advance

Cheers,

Alwin D

Re: fetching all images

Posted By:   Anonymous  
Posted On:   Friday, May 4, 2007 12:30 AM

Hi,

Use java.io.File class and point it to the directory which has the images. and then call the list() method on the file object it'll return all the files in that directory, iterate through them and generate urls for all the images and display them in the jsp.

Regards,
Rakesh
About | Sitemap | Contact