<% int currentPage = Integer.parseInt(request.getParameter("page")); int nextPage; int prevPage; String category; String nextCategory; String prevCategory; String categoryTitle; String chartTitle; String descriptionURL; String flexURL; String exampleId; categoryTitle = "Scatter"; nextCategory=prevCategory=category="Scatter"; switch(currentPage){ case 1: chartTitle = "2D Scatter"; exampleId = "ScatterChartExample1"; prevPage=1000; prevCategory="Combo"; nextPage=2; break; case 2: default: chartTitle = "2D Scatter with mutiple markers"; exampleId = "ScatterChartExample2"; currentPage=2; prevPage=1; nextPage=1; nextCategory="Financial"; break; } descriptionURL = category + "_" + currentPage + ".txt"; flexURL="/flex/examples/"+exampleId+"/"+exampleId+".html"; %> <%@ include file="galleryTemplate.jsp" %>