views:

265

answers:

1

I need to create slideshow of the images which are in server.These images would be changing as the user uploads. I need this using jsp/javascript/servlet/ajax

+1  A: 

Generally when the page loads, the slideshow code already has a list of the available files. It would need to use AJAX to poll the server periodically to determine if this list has changed (a user had uploaded a file). Typically you'd just replace the array or string holding the list of files in the AJAX call.

The server-side code just needs to supply the list of files in a folder in a format the slideshow expects.

Here's a collection of different slideshows you can grab and modify for this purpose.

Diodeus