I have a index.jsp which has included header.jsp and frontpage.jsp as follow:
<body>
...
<%@ include file="include/header.jsp"%>
...
<table>...<td> <%@ include file="include/frontpage.jsp"%></td>....
In header.jsp:
...
String __jspName = this.getClass().getSimpleName().replaceAll("_", ".");
System.out.println("[header.jsp] used user quota = "+usedNum);
...
In frontpage.jsp:
...
String __jspName = this.getClass().getSimpleName().replaceAll("_", ".");
System.out.println("[frontpage.jsp] "front_url = " + fp_front_url);
...
Actually, this is an accident that I forget to remove one of the declaration. But when I run index.jsp under Tomcat 6. It works normally and in catalina.out (note:I omit the value of front_url for security reason)
...
[header.jsp] used user quota = 0
[frontpage.jsp] front_url = ...
...
My confusion is: "Why JVM doesn't report a 'variable redefinition' exception?"