voteselect.jsp~1~
来自「新闻网(news) 带使用说明书 可以用作课程设计」· JSP~1~ 代码 · 共 59 行
JSP~1~
59 行
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.victor.domain.VoteActionForm"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.List"%>
<html>
<head>
<title>新闻人物的全部信息</title>
<style type="text/css">
<!--
body {
background-color: #FFFFCC;
}
-->
</style></head>
<script>
function submitonce(theform){
if (document.all||document.getElementById){
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
tempobj.disabled=true
}
}
}
</script>
<%List list=(List)request.getAttribute("voteList");%>
<body>
<div align="center">
<p>新闻人物的全部信息
</p>
<p> </p>
<table width="700" border="3" cellspacing="3" cellpadding="3">
<tr>
<td width="72">人物名称</td>
<td width="72">人物籍贯</td>
<td width="72">人物年龄</td>
<td width="72">人物工作</td>
<td width="72">简单介绍</td>
<td width="122">操作</td>
</tr>
<%for (int i=0;i<list.size();i++){
VoteActionForm vote=(VoteActionForm)list.get(i);
%>
<tr>
<td height="31"><%=vote.getName()%></td>
<td><%=vote.getAddress()%></td>
<td><%=vote.getCountry()%></td>
<td><%=vote.getJop()%></td>
<td><%=vote.getRemark();%></td>
<td><form name="form" method="post" action="addVote.do?ID=<%%>" onSubmit="submitonce(this);return false">
<input type="submit" name="Submit" value="投票">
</form></td>
</tr>
<%}%>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?