I tried creating a JSP Slideshow earlier on but there was a problem.
Here's the code:
<%
for(int i=0; i<52; i++)
{
String imgPath = (String)d.images.get(i);
java.lang.Thread.sleep(500);
%>
<img src="<%=imgPath%>" width="512" height="512">
<%
}
%>
Instead of showing just the next picture and so on, the browser outputs every single picture (as the loop continues) below each other.
Anyone have a solution to this?
Thanks.