Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Enumerating over classpath images in a servlet  RSS feed

russell stoneyroyd
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've got a problem where I need to create an image browser for all the icons in our webapp. All the image icons I can put into the classpath but I need to enumerate over them so that I can return all the URLs to the front end so it'll display all images/locations for that directory. I'm able to get hold of a single image like so:

However enumerating will only return me that folder location. I need to get all the images in that folder. Is there any jsp taglib or anything anyone knows of that does sthg similar? Or has anyone come across this problem.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!