本帖最后由 黑马不黑 于 2013-12-4 23:23 编辑
在开发web是,jsp页面我使用动态日历,引入的jar包是struts2-dojo-plugin-2.1.6.jar;具体的代码设置如下:<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>用户注册</title>
<s:head theme="ajax" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="Style.css">
</head>
<body style="background-image:url('images/bg.jpg'); background-position: center;background-repeat: no-repeat;">
<center>
<jsp:include page="top.jsp"></jsp:include>
<h3>
用户注册
</h3>
<s:form action="register" method="post">
<s:textfield name="userName" label="用户名" maxLength="10" />
<s:password name="userPassword" label="密 码" maxLength="16" />
<s:radio name="userSex" list="#{'男':'男', '女':'女'}" label="性 别"
labelposition="left" listKey="key" listValue="value" value="'男'" />
<s:datetimepicker name="userBirthday" label="生 日" displayFormat="yyyy-MM-dd" type="date" />
<s:textfield name="userTelephone" label="电 话"/>
<s:textfield name="userEmail" label="邮 箱"/>
<s:textfield name="userAddress" label="地 址"/>
<s:textarea name="userRemark" label="简 介" cols="17" rows="3"/>
<s:submit value="注 册"/>
</s:form>
</center>
</body>
</html>
按照上面的代码写,部署到tomcat上面,然后我用的是360浏览器打开,怎么1到9月份的现在还正常,到了10到12月份,就乱码了呢??请高手指点
|