0 Replies Latest reply on Sep 29, 2004 3:16 PM by Norton

    Conditional includes

    Norton Newbie


      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.

      I tried:

      <%@ 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?

      Thanx in advance.