⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showstudent.jsp

📁 采用STRUTS+HIBERNATE做的一个学生成绩管理系统.用的ORACLE9I数据库.
💻 JSP
字号:
<%@ page language="java" pageEncoding="gbk"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'showStudent.jsp' starting page</title>
    
	  <meta http-equiv="content-type" content="text/html; charset=gbk">
	  <meta http-equiv="Content-Style-Type" content="text/css">
	  <meta http-equiv="Content-Script-Type" content="text/javascript">
	  <link href="css/base.css" rel="stylesheet" type="text/css">
  </head>
  
	<body>
		<div class="header">
			<div class="headerBox">
				<table cellpadding="0" class="headerInfo" cellspacing="0" border="0">
		      <tr>
		        <td rowspan="2">
		          <span class="title">&nbsp;学生成绩管理系统</span>
		        </td>
						<td style=" text-align:right;">制作人:</td>
						<td style=" text-align:right; width:12em; ">杨诚</td>
		      </tr>
		    </table>
			</div>
		</div>
	
	<div class="screenName">
	  <a href="../YcTest/index.jsp">主页</a>
	  &gt;&gt;
	  学生信息管理
	</div>
	
	
	<div class="body">
	<div class="guidance">
	  显示学生信息。<br>
	  可对学生信息进行增加,删除,修改。
	   <logic:present name="message">
	   <br>
	  	 <font color="red" size="4"  ><bean:write name="message" /></font>
	  	 </logic:present>
	</div>
	<div><br> 
		<html:form action="/stuLook.do" >
			<html:submit  property="action" styleClass="submit"><bean:message key="button.studentAdd"  /></html:submit>
	</div><br>
	
	</html:form>
	<h5>学生情报</h5>
	<div class="box">
	 <logic:present name="pageNum">
	  <label>
	    页数:  
	    <logic:iterate id="pagnum"  name="pageNum">
			<a href='student.do?method=init&pageNum=<bean:write name="pagnum" />' ><bean:write name="pagnum" /></a>
	    </logic:iterate>
	  </label>
	<table cellpadding="0" class="listTable" cellspacing="0" border="0">
	  <thead>
	    <tr>
	      <th class="caption" style=" width:10em;">编号</th>
	      <th class="caption" style=" width:10em;">姓名</th>
	      <th class="caption" style=" width:5em;">性别</th>
	      <th class="caption" style=" width:5em;">年龄</th>
	      <th class="caption" style=" width:5em;">籍贯</th>
	      <th class="caption" style=" width:10em;">生日</th>
	      <th class="caption" style=" width:10em;">入学时间</th>
	      <th class="caption" style=" width:15em;">身份证号</th>
	      <th class="caption" style=" width:30em;">家庭地址</th>
	      <th class="caption" style=" width:5em;">删除</th>
	      <th class="caption" style=" width:5em;">修改</th>
	      <th class="caption" style=" width:5em;">评分</th>
	      <th class="blank"></th>
	    </tr>
	  </thead>
	
	  <tbody>
		  <logic:iterate id="student"  name="studentList">
		    <tr class="">
		      <td><span class="tbody"><bean:write name="student" property="id" />
		      </span><br>
		      </td>
		      <td><span class="tbody"><bean:write name="student" property="name" />
		      </span><br>
		      </td>
		      <td><span class="tbody"><bean:write name="student" property="sex" />
		      </span><br>
		      </td>
		      <td><span class="tbody"><bean:write name="student" property="age" />
		      </span><br>
		      </td>
		      <td><span class="tbody"><bean:write name="student" property="nativeplace" />
		      </span><br>
		      </td>
		      <td><span class="tbody"><bean:write name="student" property="birthday" />
		      </span><br>
		      </td>
		      <td><span class="tbody"><bean:write name="student" property="joindate" format="yyyy-MM-DD" />
		      </span><br>
		      </td>
		      <td><span class="tbody"><bean:write name="student" property="identitycard" />
		      </span><br>
		      </td>
		      <td><span class="tbody"><bean:write name="student" property="address" />
		      </span><br>
		      </td>
		      <td><span class="tbody"><html:link action="student?method=delStudent" paramId="stuid" paramName="student" paramProperty="id">删除</html:link>
		      </span><br>
		      </td>
		      <td><span class="tbody"><html:link action="student?method=updateStudent" paramId="stuid" paramName="student" paramProperty="id">修改</html:link>
		      </span><br>
		      </td>
		      <td><span class="tbody"><html:link action="result?method=init" paramId="stuid" paramName="student" paramProperty="id">评分</html:link>
		      </span><br>
		      </td>
		    </tr>
		  </logic:iterate>
	  </tbody>
	</logic:present>
	<logic:notPresent name="pageNum" >
	 <font color="red" size="4"  >没有数据</font>
	</logic:notPresent>
	</table>
	</div>
	
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -