首页 > 编程语言 >2021级《JAVA语言程序设计》上机考试试题8

2021级《JAVA语言程序设计》上机考试试题8

时间:2022-12-25 19:22:17浏览次数:44  
标签:JAVA 上机 getAttribute item 2021 审批 message null 考试

专业教师功能页:

 

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>教师功能页</title>
</head>
<body>
<%
Object message = request.getAttribute("message");
if(message!=null && !"".equals(message)){

%>
<script type="text/javascript">
alert("<%=request.getAttribute("message")%>");
</script>
<%} %>
<center>
<h1>
专业教师功能页
</h1>
<form name="form" method="post" action="Screen.jsp">
<input type="submit" value="返回主页">
</form>
</center>
<div align="center">
<form name="form" method="post" action="AddCard.jsp">
<input type="submit" value=" 添加审批卡信息 ">
</form>
<form name="form" action="Servlet?method=ViewinformationCard" method="post" onsubmit="return check()">
<input type="submit" value="浏览审批卡信息" />
</form>
</body>
</html>

添加审批卡

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>添加审批卡信息</title>
</head>
<body>
<%
Object message = request.getAttribute("message");
if(message!=null && !"".equals(message)){

%>
<script type="text/javascript">
alert("<%=request.getAttribute("message")%>");
</script>
<%} %>
<center>
<h1>
添加审批卡信息
</h1>
</center>
<div align="center">
<form name="form" action="Servlet?method=AddCard" method="post" onsubmit="return check()">
编号:
<input type="text" name="CardId" />
<p>
申请日期
<input type="text" name="CardData" />
<p>
课程名称
<input type="text" name="CourseName" />
<p>
任课教师
<input type="text" name="CourseTeacher" />
<p>
课程编号
<input type="text" name="CourseID" />
<p>
课程性质
<input type="text" name="CourseNature" />
<p>
课程学分
<input type="text" name="Credit" />
<p>
授课班级
<input type="text" name="CourseClass" />
<p>
授课专业
<input type="text" name="CourseMajor" />
<p>
考试方式
<input type="text" name="TestWay" />
<p>
考试日期
<input type="text" name="TestData" />
<p>
考试人数
<input type="text" name="TestCount" />
<p>
出题方式
<input type="text" name="TestMethod" />
<p>
成绩组成
<input type="text" name="TestGrade" />
<p>
考核与评价方式
<input type="text" name="TestEvaluation" />
<p>
考核内容合理性分析
<input type="text" name="TestAnalysis" />
<p>
<input type="submit" value="添加" />
</form>
</div>

</body>
</html>

浏览审批卡

 

 

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>浏览审批卡信息</title>
</head>
<body>
<%
Object message = request.getAttribute("message");
if(message!=null && !"".equals(message)){

%>
<script type="text/javascript">
alert("<%=request.getAttribute("message")%>");
</script>
<%} %>
<center>
<h1>
浏览审批卡信息
</h1>
<form name="form" method="post" action="Teacher.jsp">
<input type="submit" value="返回教师功能页">
</form>
</center>
<div align="center">
<table align="center" border="1" width="500">
<tr>
<td>编号</td>
<td>专业审查意见</td>
<td>专业审查结论</td>
<td>合理性审查意见</td>
<td>合理性审查结果</td>
<td>状态</td>
<td>操作1</td>
<td>操作2</td>
</tr>
<c:forEach items="${bean}" var="item" varStatus="status">
<tr>
<td>${item.getCardId()}</td>
<td>${item.getProfessional()}</td>
<td>${item.getProfessionalConclusion()}</td>
<td>${item.getReasonable()}</td>
<td>${item.getReasonableConclusion()}</td>
<td>${item.getAuditStatus()}</td>
<td>
<form name="form" action="Servlet?method=UpdateCard1&CardId=${item.getCardId()}" method="post" onsubmit="return check()">
<input type="submit" value="修改审批卡" />
</form>
</td>
<td>
<form name="form" action="Servlet?method=DeleteCard&CardId=${item.getCardId()}" method="post" onsubmit="return check()">
<input type="submit" value="删除审批卡" />
</form>
</td>
</tr>
</c:forEach>
</table>
</div>


</body>
</html>

 

标签:JAVA,上机,getAttribute,item,2021,审批,message,null,考试
From: https://www.cnblogs.com/JIANGzihao0222/p/17004415.html

相关文章

  • JAVA异常
    JAVA异常异常:指程序运行中出现的不期而至的各种状况(例:文件找不到、网络连接失败...)异常发生在程序运行期间,它影响了正常的程序执行流程简单分类:检查性异......
  • 14个 JavaScript 代码优化技巧
    这篇文章列举了一些技巧,可帮助你写出更好的JavaScript代码,从而提高性能。JavaScript已经成为有史以来最受欢迎的编程语言之一。从W3Tech的数据来看,全世界将近96%的网站......
  • 精心收集的95个超实用的JavaScript代码片段(ES6 +编写)
    Array数组Arrayconcatenation(数组拼接)使用Array.concat(),通过在args中附加任何副本和/或值来拆分一个数组。JavaScript代码:constArrayConcat=(arr,...args)=>[]。c......
  • Django之SQL注入漏洞复现(CVE-2021-35042)
    前言SQL注入的原理是对web请求,表单或域名等提交查询的字符串没有进行安全检测过滤,攻击者可以拼接执行恶意SQL命令,导致用户数据泄露漏洞原理Django组件存在SQL注入漏......
  • Java编程思想11
    第十六章:数组Java中已经有了容器,为什么还需要数组呢,是因为数组可以持有基本类型吗?但是在泛型出来之后,通过自动包装机制,其实通过容器也能够持有基本类型。在Jav中,数组是一种......
  • Java编程思想12
    第十七章:容器深入研究完整的容器分类法:这张图是把工作中常用到的实现类和相关接口使用UML类图辨识出来  JavaSE5新添加了:Queue接口及其实现PriorityQueue和各种风......
  • JavaScript安全性问题与最佳预防做法
    英文| ​​https://blog.bitsrc.io/javascript-security-issues-and-best-practices-37e78df4dce4​​翻译|web前端开发众所周知,JavaScript是一种非常完善的编程语言。J......
  • 2021年年终总结
    2021YearSummary—26岁What:根据年度划分,对于个人全年情况做一个总结Why:回顾过去,保持优秀的习惯、纠正不足的习惯,不断精进,实现物质自由,精神自由How:用书写来进行回顾、......
  • java常见的代码缺陷
    5个以上参数的方法摘要函数声明中参数超过5个,将导致程序逻辑过于复杂。缺陷描述方法函数应当尽量简洁,一个函数只处理一个功能,本规则检测函数的参数超过5个的情形。示例1......
  • day03-Java的基本语法
    本章包含注释、关键字、字面量、变量注释注释的分类1.单行注释格式://注释信息2.多行注释格式:/*注释信息/3.文档注释格式:/*注释信息*/4.注释的使用......