Need variables to carry over to another included page
Posted on 2004-08-13
About half way down a JSP, I have an include statement like this:
<jsp:include page="page2b.jsp" flush="true"/>
page2b.jsp then uses some logic that evaluates some variables from the first page.
Is there a way that I can declare and set the variables on the first page in a way that they can be read on page2.jsp?
I imagine that there are session varibales (although I am not sure how to declare them).
But is there another way that I can include the page2.jsp so that it will be read by the server as a part of the first page an accept the variables as though they were set on that page?