This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Dispaly all images of folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Dispaly all images of folder" Watch "Dispaly all images of folder" New topic
Author

Dispaly all images of folder

ramesh poorella
Ranch Hand

Joined: Jul 19, 2011
Posts: 60
Hai..

i have one Images folder.. in that folder i have 4 images.. i need to retrive and display dynamically all these images in jsp
Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Use the html img tag and specify the location of the image in the src attribute.


Learning and Learning!-- Java all the way!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Where are the files? If on the server, you can use normal File I/O to discover the image names and if they are in the web app figure out what the URL should be.

If they are on the client, you are out of luck without a signed applet.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
ramesh poorella
Ranch Hand

Joined: Jul 19, 2011
Posts: 60
the images are out of the clint.... so how is it possible
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Dispaly all images of folder
 
Similar Threads
Accessing images from another path in UNIX
Images in downloaded files
Does having images in the webcontent without using it affect performance
Does having images in the WEB-INF folder without using it have an affect the performance
Display All images from a folder on a html/jsp page