Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP Slideshow

843838May 18 2006
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 15 2006
Added on May 18 2006
0 comments
26 views