0

I would like to generate html code for an image gallery consisting of thumbnails in Java. There are a great many scripts out there that do this, mostly in php or perl, and quite a few standalone, but I have not found any Java library or code that can do this. This is for a Java application. Is anyone aware of a java library package or source code that can do this?

Any pointers appreciated.

Andy

Andy
  • 2,469
  • 1
  • 25
  • 25
  • 1
    Could you elaborate on your question. Where is this image gallery? Why can't you write code in a JSP with a for loop to create html code for the same? – Abhishek Sep 30 '12 at 16:56
  • This is a standalone Java application, its a not an applet, and its not running on a webserver. The html gallery would be viewed in a browser inside the application, but not necessarily published online, although the user may later choose to do so. – Andy Sep 30 '12 at 17:28

1 Answers1

0

Your problem is the ideal use case for Apache FOP . You will have to have a look at XSL-FO. Also look at the answer given to an earlier question on StackOverflow . Hope it helps.

Community
  • 1
  • 1
Abhishek
  • 1,031
  • 4
  • 16
  • 25
  • Thank you for your answer, but I really can not understand how that can help me. I need html code for a gallery with a set of pictures as input. Could you explain? – Andy Oct 01 '12 at 17:18