Forum Moderators: open
We'll go on the assumption that you are not delivering all the content for the rotation in the first request. So, we need to make a round trip to the server to get the next chunk of content for rotation. If you only want to replace a certain part of the page then you are describing what is commonly known as AJAX. You initiate a request to your JSP processing page using JavaScript and receive that request again with JavaScript and update your page with the latest information.
The request is often called an XMLHttpRequest and a quick search will turn up plenty of reading on the topic. Firefox has a starter page as well, I'll link it here for you ...
[developer.mozilla.org...]