I have a jsp page that has 5 other pages.in my index page I have a special div in the middle where I want to load the other 4 pages when a button is clicked. Depending on the button clicked a specific page will load in a div in the index page. what I want to do here is load all the said pages in the div page in the home page with a button click. I tried several approach but I haven't really figure out how to fix this problem. in my index page the special div has a flash file playing and I have several buttons one of which is a product button when I click the product button want the special div to load the product.jsp. instead when I load the project the product.jsp is loaded together with the index page. I tried this
<form action="workspace">
<object id="swf" data="test.swf" type="application/x-shockwave-flash" >
<param name="movie" value="test.swf">
<p>You need Adobe Flash Player to view this content</p>
</object>
<div id="workspaceproducts" class="panel" style="display:hidden;">
<%@ include file="products.jsp" %>
</div>
</form>
<script>
$('#products').click(function(){
$('#workspace').load(document.getElementById("workspaceproducts").style.display="block");
});
</script>