I have a main
jsp file that redirects, depending on the request, the appropriate jsp file. I was using at first:
<%@ include file="d_AllProjects.jsp"%>
But I started getting the "Illegal target of jump or branch" error once I had more than 17 includes (using condition to select the appropriate one).
so I switched the code to build the filename as a
string depending on the request and then used:
<jsp:include page="<%=filename%>"/>
It's working but there's a small delay when the page is being pulled. I'm also not sure which one is best to use.
Any advice on how to clean this up?
Many thanks!