Hi,

You can do this by using java.io.File.

*sample code*
File file=new File("D:\\image_storage");
File listImages[]=null;
if(file.existrs())
{
listImages=file.listFiles();
if(listImages!=null)
{
for(int i=0;i<listImages.length;i++)
{
//your code goes here, like including in table <table...
<img src="<%=listImages[i].getAbsolutePath()%>" alt="" />
//your code goes here, </table>
}
}
}



regards,
G.Santhosh Kumar



2009/6/1 Nguyễn Quang Tùng <tungnq1...@gmail.com>

>
> when i do a action upload images , i will store it into local folder
> in my PC. Therefore, the size of folder may be quite big. i think it's
> possible too, but i resolve this problem not yet.
>
> thanks
>
> On 6/1/09, EaKG <tungnq1...@gmail.com> wrote:
> >
> > Hi everyone!
> > i'm creating a web project and i have a folder in a local hard-disk
> > (ex. D:\image_storage\imagesname.jpg).
> > But i want to show list of images in jsp but i dont want to copy all
> > of these images to webapps of Tomcat.
> > Is it possible ?
> >
> > Thanks  :)
> >
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to