I have an application where I have jsp pages including other jsp pages. If we call the main page Page 1 and the included page Page2, I want to include a different Page 2 depending on a condition in Page 1.
<%@ include file="<%= page2 %>" %>
which didn't work for obvious reasons. I'd rather not use an if statement if I can help it.
Anyone have any other suggestions on how I could accomplish this?