jsp乱码问题
jsp和html(要引入的jsp页面 此处是index.jsp)都可以正确的显示,当jsp引入html时访问jsp页面html出现乱码,jsp原有的输出无乱码
我的index界面是<%@ page language="java" import="java.util.*" contentType="text/html;charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib prefix="bean" uri="WEB-INF/struts-bean.tld" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>登陆</title>
</head>
<body >
<center>
<form action="login.do" method="post">
<% Date date = new Date();
pageContext.setAttribute("date",date);
%>
<bean:define id="dates" name="date" property="time"></bean:define>
当前时间距离1970年一月一日的毫秒数“:<bean:write name="dates"/>秒<br>
</form>
</center>
</body>
</html>
引入index的界面是:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="bean" uri="/WEB-INF/struts-bean.tld" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'index2.jsp' starting page</title>
</head>
<body>
<c:form action="login.do">
姓名:<c:text property="text" value=""></c:text>
<c:button property="text" value="按钮"></c:button>
<c:checkbox property="password" value=""></c:checkbox>
<bean:include id="pages" page="/index.jsp" />
<bean:write name="pages" filter="false"/>
</c:form>
</body>
</html>
哪位高人 给指点一下
------解决方案--------------------
我的建议是把UTF-8改成GBK