关于@include和 jsp:include的疑惑
关于@include和 jsp:include的疑惑chinese.jsp内容如下:
--------------------------
<%@ page contentType="text/html;charset=GBK" %>
<% request.setCharacterEncoding("GBK"); %>
-------end-------------
include.jsp内容:
------------------------------
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<%@include file="chinese.jsp" %>
<br>
十年磨一剑<br>
Test<br>
Test<br>
</BODY>
</HTML>
这样 写时中文"十年磨一剑"无法显示,而将 <%@include file="chinese.jsp" %>改为
<jsp:include page="chinese.jsp /> 则OK.
why? 哪位大侠可指点一二? 谢了!