| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 725 人关注过本帖
标题:[讨论]jsp文件乱码问题
取消只看楼主 加入收藏
zhanfuxin
Rank: 1
等 级:新手上路
帖 子:42
专家分:0
注 册:2006-3-25
收藏
 问题点数:0 回复次数:1 
[讨论]jsp文件乱码问题

<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<html>
<jsp:useBean id="checkLogin" class="loginBean.LoginBean"/>
<head>
<title>Using Bean To Longin</title>
<style type="text/css">
<!--
.style4 {color: #8000FF}
.style5 {color: #000000}
-->
</style>
</head>
<body>
<form name="form1" method="post" action="">
<p><span class="style4">»¶Ó­</span><span class="style5"><b><i><%=request.getParameter("username")%></i></span><span class="style4">µÄµ½À´</span>£¡
<a href="denglu.jsp">Í˳ö</a>
</p>
<h2><img src="020.gif" width="32" height="32"><em><font size="3">ÎÒ°®ÊÎÆ·Íø</font></em><a href="www.shipin.com"><font size=3>www.shipin.com</font></a></h2>
<div>
<a href="">ÐÂÎÅ</a>|
<a href="">ÓéÀÖ</a>|
<a href="">ÌåÓý</a>|
<a href="">²Æ¾­</a>|
<a href="">ÉÌÒµ</a>|
<a href="">¿Æ¼¼</a>|
<a href="">Æû³µ</a>|
<a href="">ÊýÂë</a>|<br>
<a href="">Å®ÈË</a>|
<a href="">½¡¿µ</a>|
<a href="">½ÌÓý</a>|
<a href="">ÎÄ»¯</a>|
<a href="">ÂÃÓÎ</a>|
<a href="">¾üÊÂ</a>|
<a href="">²¿Âä</a>|
<a href="">ÂÛ̳</a>|
</div>
<div style="WIDTH:200px; HEIGHT:170px" align=center>
<IMG height=100 src="021.jpg" width=777>
</div>
</form>
<%
checkLogin.init(request,out,response);
checkLogin.execute();
checkLogin.clean();
%>
</body>
</html>
这个文件为什么会乱码吗?昨天运行时还没有这种情况啊?

搜索更多相关主题的帖子: jsp 乱码 span 文件 
2006-08-06 13:26
zhanfuxin
Rank: 1
等 级:新手上路
帖 子:42
专家分:0
注 册:2006-3-25
收藏
得分:0 

为什么又有问号呢?
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<jsp:useBean id="checkLogin" class="loginBean.LoginBean"/>
<head>
<title>?????</title>
<style type="text/css">
<!--
.style5 {color: #000000}
.style6 {font-family: "??-???????"}
.style7 {color: #8000FF; font-family: "??-???????"; }
-->
</style>
</head>
<body>
<form name="form1" method="post">
<p><span class="style7">??</span><span class="style5"><b><i><%=request.getParameter("username")%></i></span><span class="style7">???</span>
<span class="style6"><a href="denglu.jsp">??</a>
</span></p>
<h2><img src="020.gif" width="32" height="32"><span class="style6"><em><font size="3">?????</font></em></span><a href="www.shipin.com"><font size=3></font><font size=3>www.shipin.com</font></a></h2>
<div>
<a href="">??</a>|
<a href="">??</a>|
<a href="">??</a>|
<a href="">??</a>|
<a href="">??</a>|
<a href="">??</a>|
<a href="">??</a>|
<a href="">??</a>|<br>
<a href="">??</a>|
<a href="">??</a>|
<a href="">??</a>|
<a href="">??</a>|
<a href="">??</a>|
<a href="">??</a>|
<a href="">??</a>|
<a href="">??</a>|
</div>
<div align=center>
<IMG height=100 src="021.jpg" width=777>
</div>
</form>
<%
checkLogin.init(request,out,response);
checkLogin.execute();
checkLogin.clean();
%>
</body>
</html>


2006-08-06 15:58
快速回复:[讨论]jsp文件乱码问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.012871 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved