📄 listallcourse.jsp
字号:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import = "com.briup.bean.*"%><jsp:useBean id = "courseList"class = "java.util.ArrayList"scope = "application"/><jsp:useBean id = "error"class = "java.lang.String"scope = "request"></jsp:useBean><%@ taglib uri = "/WEB-INF/c.tld" prefix = "c" %><%@ taglib uri = "/WEB-INF/struts-html.tld" prefix = "html"%><%@ taglib uri = "/WEB-INF/struts-bean.tld" prefix = "bean"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- saved from url=(0047)http://localhost:8888/jsp/day01/numberGuess.jsp --><HTML><HEAD><TITLE>Number Guess</TITLE><META http-equiv=Content-Type content="text/html; charset=UTF-8"><META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD><body><table width="100%" border="0" align="center" bgcolor="FFDC75"><c:choose> <c:when test="${sessionScope.select eq true}"> <tr> <td align="center"> <font face="Verdana" size="+1"> 您还没有选课,请马上进行选课<br/> </font> </td> </tr> </c:when> <c:otherwise> <tr> <td align="center"> <font face="Verdana" size="+1"> ${sessionScope.student.name }同学!以下是您选的课程<br/> </font> </td> </tr> </c:otherwise></c:choose></table><br><table align="center" border="1" bordercolor="FFDC75" cellpadding="3" cellspacing="3"> <tr> <th>课程号</th> <th>课程名</th> <th>描述</th> <th>学分</th> </tr> <c:choose> <c:when test="${ empty requestScope.cList}"> <c:forEach var = "course" items = "${ applicationScope.courseList}"> <form name="f1" method="post" action="listcourse.do"> <input type="hidden" name="courseid" value="${ course.id}"/> <tr> <td align="center">${course.id }</td> <td>${course.name }</td> <td>${course.description }</td> <td>${ course.point}</td> <td><input type="submit" value="<bean:message key = "submit.choose"/>" name = "method"/></td> </tr> </form> </c:forEach> </c:when> <c:otherwise> <c:forEach var = "course" items="${ requestScope.cList}"> <form name = "fi" method = "post" action = "listcourse.do"> <input type = "hidden" name = "courseid" value = "${course.id }"/> <tr> <td align="center">${course.id }</td> <td>${course.name }</td> <td>${course.description }</td> <td>${ course.point}</td> <td><input type="submit" value="<bean:message key = "submit.choose"/>" name = "method"/></td> </tr> </form> </c:forEach> </c:otherwise> </c:choose></table><br><center><form action="listcourse.do" method="post"><input type="submit" value = "<bean:message key = "submit.lookup"/>" name = "method"/> <input type="submit" value = "<bean:message key = "submit.find"/>" name="method"> <input type="submit" value = "<bean:message key = "submit.submit"/>" name="method"></form></center></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -