请JSP高手帮我看看下面的代码,有问题
<%@pagepageEncoding="gb2312"%><%@pagecontentType="text/html;charset=gb2312"%><%reques...
<%@ page pageEncoding="gb2312" %>
<%@ page contentType="text/html; charset=gb2312" %>
<% request.setCharacterEncoding("gb2312"); %>
<%@ page language="java" %>
<html>
<head>
<title>小按钮</title>
</head>
<body>
<a href="mainPage.html" target="_blank">首页</a>
<a href="Register.jsp" target="_blank">注册</a>
<a href="Login.jsp" target="_blank">登陆</a>
<a href="AdminLogin.jsp" target="_blank">管理员登陆</a>
<a href="help.html" target="fra4">帮助</a>
<font color="Brown">日期: <%@ include file="date.jsp" %>
</font>
</body>
</html>
其他都能正常显示,时间显示不出来,我换了几种写法了,都不行 展开
<%@ page contentType="text/html; charset=gb2312" %>
<% request.setCharacterEncoding("gb2312"); %>
<%@ page language="java" %>
<html>
<head>
<title>小按钮</title>
</head>
<body>
<a href="mainPage.html" target="_blank">首页</a>
<a href="Register.jsp" target="_blank">注册</a>
<a href="Login.jsp" target="_blank">登陆</a>
<a href="AdminLogin.jsp" target="_blank">管理员登陆</a>
<a href="help.html" target="fra4">帮助</a>
<font color="Brown">日期: <%@ include file="date.jsp" %>
</font>
</body>
</html>
其他都能正常显示,时间显示不出来,我换了几种写法了,都不行 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询