Hi,
I have a jsp file (1) including another jsp file (2). I want to use a variable from file 1 in file 2. I have tried the following:
File 1:
<%
...
String myVar;
...
%>
<jsp:include page="file_2.jsp" flush="true"
...
/>
File 2:
...
The variable is: <%=myVar%>
...
I get an error message saying that myVar in file 2 is undefined.
Any suggestions? Thanks in advance!
I have a jsp file (1) including another jsp file (2). I want to use a variable from file 1 in file 2. I have tried the following:
File 1:
<%
...
String myVar;
...
%>
<jsp:include page="file_2.jsp" flush="true"
...
/>
File 2:
...
The variable is: <%=myVar%>
...
I get an error message saying that myVar in file 2 is undefined.
Any suggestions? Thanks in advance!