<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%><%@ page language="java" import="java.util.ArrayList"%>
<%@ page language="java" import="java.util.Iterator"%>
<%@ page language="java" import="sei.dao.factory.DAOFactory"%>
<%@ page language="java" import="sei.vo.User"%><%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
<head>
<title>authormanager</title><style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
.STYLE2 {
color: #FFFFFF;
font-family: "宋体";
font-size: 14px;
}
.STYLE3 {color: #FFFFFF; font-family: "宋体"; font-size: 16px; }
-->
</style><style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
.STYLE2 {
color: #FFFFFF;
font-family: "宋体";
font-size: 14px;
}
-->
</style><style type="text/css">
<!--
.STYLE3 {color: #0071C1}
.STYLE5 {color: #0071C1; font-size: 16px; }
.STYLE6 {font-size: 16px}
.STYLE15 {color: #0170C1; font-size: 36px; }
.STYLE7 {color: #0170C1}
.STYLE17 {font-size: 16; }
.STYLE18 {color: #FFFFFF}
.STYLE18 {color: #FFFFFF}
.STYLE19 { color: #FFFFFF;
font-family: "宋体";
font-size: 14px;
}
.STYLE19 { color: #FFFFFF;
font-family: "宋体";
font-size: 14px;
}
.STYLE20 {color: #FFFFFF; font-family: "宋体"; font-size: 16px; }
.STYLE20 {color: #0071C1}
-->
</style>
</head><body >
<table width="800" >
<tr>
<td><jsp:include page="../common/editor.jsp" flush="ture" /></td>
<td>
<table width="680">
<tr>
<td><span class="STYLE5" >记者编号</span></td><td><span class="STYLE5" >记者姓名</span></td><td><span class="STYLE5" >部门ID</span></td>
</tr><%List list=(List)request.getAttribute("author");
Iterator iter = list.iterator();
while(iter.hasNext()){
User user=(User)iter.next();
%>
<tr> <td><span class="STYLE5" ><%=user.getUserID() %></span></td>
<td><span class="STYLE5" ><%=user.getUserName() %></span></td>
<td><span class="STYLE5" ><%=user.getNewsKindID() %></span></td>
<td><form method="post" action="deleteuser"><a href="getuser?userid=<%=user.getUserID() %>">查看</a><input type="submit" value="刪除" name="delete"/></form> </td>
</tr>
<%
}
%>
</table>
</td>
</tr>
</table>
<jsp:include page="../common/footer.jsp" flush="true"/>
</body>
</html>
<%@ page language="java" import="java.util.Iterator"%>
<%@ page language="java" import="sei.dao.factory.DAOFactory"%>
<%@ page language="java" import="sei.vo.User"%><%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
<head>
<title>authormanager</title><style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
.STYLE2 {
color: #FFFFFF;
font-family: "宋体";
font-size: 14px;
}
.STYLE3 {color: #FFFFFF; font-family: "宋体"; font-size: 16px; }
-->
</style><style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
.STYLE2 {
color: #FFFFFF;
font-family: "宋体";
font-size: 14px;
}
-->
</style><style type="text/css">
<!--
.STYLE3 {color: #0071C1}
.STYLE5 {color: #0071C1; font-size: 16px; }
.STYLE6 {font-size: 16px}
.STYLE15 {color: #0170C1; font-size: 36px; }
.STYLE7 {color: #0170C1}
.STYLE17 {font-size: 16; }
.STYLE18 {color: #FFFFFF}
.STYLE18 {color: #FFFFFF}
.STYLE19 { color: #FFFFFF;
font-family: "宋体";
font-size: 14px;
}
.STYLE19 { color: #FFFFFF;
font-family: "宋体";
font-size: 14px;
}
.STYLE20 {color: #FFFFFF; font-family: "宋体"; font-size: 16px; }
.STYLE20 {color: #0071C1}
-->
</style>
</head><body >
<table width="800" >
<tr>
<td><jsp:include page="../common/editor.jsp" flush="ture" /></td>
<td>
<table width="680">
<tr>
<td><span class="STYLE5" >记者编号</span></td><td><span class="STYLE5" >记者姓名</span></td><td><span class="STYLE5" >部门ID</span></td>
</tr><%List list=(List)request.getAttribute("author");
Iterator iter = list.iterator();
while(iter.hasNext()){
User user=(User)iter.next();
%>
<tr> <td><span class="STYLE5" ><%=user.getUserID() %></span></td>
<td><span class="STYLE5" ><%=user.getUserName() %></span></td>
<td><span class="STYLE5" ><%=user.getNewsKindID() %></span></td>
<td><form method="post" action="deleteuser"><a href="getuser?userid=<%=user.getUserID() %>">查看</a><input type="submit" value="刪除" name="delete"/></form> </td>
</tr>
<%
}
%>
</table>
</td>
</tr>
</table>
<jsp:include page="../common/footer.jsp" flush="true"/>
</body>
</html>
有时候的字符是不支持GBK的,一般的我用UTF-8。
如一楼,用得最多的还是utf-8.
将文件的编码属性(在Eclipse中)直接修改,就会报这个错。
改回到原来的编码就好了。