📄 getclass_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
public final class getClass_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"errorpage.jsp", true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<title>所有班级</title>\r\n");
out.write("</head>\r\n");
beans.classp cla = null;
synchronized (_jspx_page_context) {
cla = (beans.classp) _jspx_page_context.getAttribute("cla", PageContext.PAGE_SCOPE);
if (cla == null){
cla = new beans.classp();
_jspx_page_context.setAttribute("cla", cla, PageContext.PAGE_SCOPE);
}
}
out.write("\r\n");
out.write("<body bgcolor=\"#0099FF\" text=\"#FFFFFF\" link=\"#00FF00\">\r\n");
String id="",tea_id="",cour_id="",room_id="",cour_time="",cour_name="",tea_name="";
out.write("\r\n");
out.write("<div align=\"center\">\r\n");
out.write(" <p><font color=\"#00FF00\" size=\"+3\" face=\"方正舒体\">所有班级</font></p>\r\n");
out.write(" <p align=\"left\"><font color=\"#00FF00\" size=\"+1\" face=\"方正舒体\"><a href=\"AddClass.jsp\">新增班级</a></font></p>\r\n");
out.write(" <table width=\"75%\" border=\"1\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td>班级号</td>\r\n");
out.write(" <td>教师</td>\r\n");
out.write("\t <td>教师号</td>\r\n");
out.write(" <td>课程</td>\r\n");
out.write("\t <td> 课程号 </td>\r\n");
out.write(" <td>教室ID</td>\r\n");
out.write(" <td>上课时间</td>\r\n");
out.write(" <td>删除</td>\r\n");
out.write(" <td>更新</td>\r\n");
out.write(" </tr>\r\n");
out.write(" \r\n");
ResultSet rs =cla.getClasses();
while(rs.next()){
id=rs.getString("id");
tea_id=rs.getString("tea_id");
cour_id=rs.getString("cour_id");
room_id=rs.getString("room_id");
cour_time=rs.getString("cour_time");
cour_name=rs.getString("cour_name");
tea_name=rs.getString("tea_name");
out.write("\t\r\n");
out.write("\t<tr> \r\n");
out.write(" <td>");
out.print(id);
out.write("</td>\r\n");
out.write(" <td>");
out.print(tea_name);
out.write("</td>\r\n");
out.write("\t <td>");
out.print(tea_id);
out.write("</td>\r\n");
out.write(" <td>");
out.print(cour_name);
out.write("</td>\r\n");
out.write("\t <td> ");
out.print(cour_id);
out.write("</td>\r\n");
out.write(" <td>");
out.print(room_id);
out.write("</td>\r\n");
out.write(" <td>");
out.print(cour_time);
out.write("</td>\r\n");
out.write(" <td><a href=\"ClassSvlt?action=delete&id=");
out.print(id);
out.write("\">删除</a></td>\r\n");
out.write(" <td><a href=\"updateClass.jsp?id=");
out.print(id);
out.write("&tea_id0=");
out.print(tea_id);
out.write("&cour_time0=");
out.print(cour_time);
out.write(" \">更新</a></td>\r\n");
out.write(" </tr>\r\n");
out.write("\t");
}
out.write("\r\n");
out.write(" </table>\r\n");
out.write(" <p align=\"left\"><a href=\"admin.jsp\"><<Back to Admin</a></p>\r\n");
out.write("</div>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -