<%@ page contentType="text/html; charset=gb2312"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<jsp:useBean id='db' scope='request' class='Base.DataBean.DefaultDataBean' />
<html>
<head>
<link rel=stylesheet href="../../index.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>学院配置</title>
</head>
<body>
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="40"> </td>
<td width="910"><table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" class="title_s"> 您已登陆: <%= session.getAttribute("NAME")%> </td>
</tr>
<tr>
<td height="5" bgcolor="#A3BED9"></td>
</tr>
<tr>
<td height="1" bgcolor="#0A1870"></td>
</tr>
</table></td>
<td width="50"> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="40"> </td>
<td width="910">
<table class="main_w" width="100%" border="1" cellpadding="4" cellspacing="0" bordercolor="FFFFFF" bgcolor="E7F2FF">
<tr bgcolor="#FFFFFF" class="title_s">
<td height="20" colspan="4"><div align="center">已有学院列表
</div> <div align="center"></div></td>
</tr>
<tr>
<td height="20" colspan="4"><div align="center"><a href="newcollege.jsp"><strong>添加新学院</strong></a></div></td>
</tr>
<tr class="title_s">
<td width="22%"><div align="center">学院编号</div></td>
<td width="50%" height="20"><div align="center">学院名称</div></td>
<td width="14%" height="20"><div align="center">修改</div></td>
<td width="14%" height="20"><div align="center">删除</div></td>
</tr>
<%
for(int i=0;i<db.getCount("college");i++){
%>
<tr>
<td height="20"><div align="center"><%= db.getAttributeStr("college.mark",i) %></div></td>
<td height="20"><div align="center"><%= db.getAttributeStr("college.name",i) %></div></td>
<td height="20"><div align="center"><a href="modify.cgi?id=<%=db.getAttributeStr("college.id",i)%>">修改</a></div></td>
<td height="20"><div align="center"><a href="deletecollege.jsp?id=<%=db.getAttributeStr("college.id",i)%>">删除</a></div></td>
</tr>
<%
}
%>
</table></td>
<td width="50"> </td>
</tr>
</table>
</body>
</html>
上面的代码在点修改或删除而调用文件时,如果是文件的后缀名为.JSP的话,页面不能完全正常显示,为.CGI时,所有应该显示中文的全变成了乱码,不知道是怎么原因,高手帮帮忙啊
JSP"?"乱码求助,很怪的一个问题