G
Grudak
Hi all, I hope someone can help me understand why this doesn't work. I
guess I don't understand how <jsp:include is supposed to work...
here is include.jsp:
<html>
<body>
<jsp:include page="include.jspf" />
</body>
</html>
and here is include.jspf:
<% String a = "hello"; %>
<%=a%>
when I browse to include.jsp, I would expect to see the word hello in
my browser. However, there is nothing in the browser. when I look at
the source, I see:
<html>
<body>
<% String a = "hello"; %>
<%=a%>
</body>
</html>
what gives??? it seems to be blindly including the jspf file into the
source, rather than *evaluating* the .jsfp file. If I paste the
contents of the .jspf into the .jsp file in place of the <jsp:include
statement, I get the word hello, but that defeats the purpose of code
reuse.
Help???
guess I don't understand how <jsp:include is supposed to work...
here is include.jsp:
<html>
<body>
<jsp:include page="include.jspf" />
</body>
</html>
and here is include.jspf:
<% String a = "hello"; %>
<%=a%>
when I browse to include.jsp, I would expect to see the word hello in
my browser. However, there is nothing in the browser. when I look at
the source, I see:
<html>
<body>
<% String a = "hello"; %>
<%=a%>
</body>
</html>
what gives??? it seems to be blindly including the jspf file into the
source, rather than *evaluating* the .jsfp file. If I paste the
contents of the .jspf into the .jsp file in place of the <jsp:include
statement, I get the word hello, but that defeats the purpose of code
reuse.
Help???