📄 score_0002ejsp_jsp.java
字号:
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class score_0002ejsp_jsp extends HttpJspBase {
// begin [file="/score.jsp";from=(6,0);to=(6,56)]
// end
static {
}
public score_0002ejsp_jsp( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
}
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;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
}
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"errorpage.jsp", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/score.jsp";from=(0,113);to=(6,0)]
out.write("\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>score</title>\r\n</head>\r\n");
// end
// begin [file="/score.jsp";from=(6,0);to=(6,56)]
determine deter = null;
boolean _jspx_specialdeter = false;
synchronized (pageContext) {
deter= (determine)
pageContext.getAttribute("deter",PageContext.PAGE_SCOPE);
if ( deter == null ) {
_jspx_specialdeter = true;
try {
deter = (determine) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "determine");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"determine", exc);
}
pageContext.setAttribute("deter", deter, PageContext.PAGE_SCOPE);
}
}
if(_jspx_specialdeter == true) {
// end
// begin [file="/score.jsp";from=(6,0);to=(6,56)]
}
// end
// HTML // begin [file="/score.jsp";from=(6,56);to=(23,4)]
out.write("\r\n<body bgcolor=\"#0099FF\" text=\"#FFFFFF\" link=\"#00FF00\">\r\n\r\n<div align=\"center\"> \r\n <p> </p>\r\n <p><font color=\"#00FF00\" size=\"+3\" face=\"方正舒体\">选报该课程的学生有</font></p>\r\n <p> </p>\r\n <table width=\"75%\" border=\"1\">\r\n <tr> \r\n <td>学生姓名</td>\r\n <td>所在系</td>\r\n <td>性别</td>\r\n <td>学分</td>\r\n <td>Email</td>\r\n <td>Tel</td>\r\n <td>成绩</td>\r\n </tr>\r\n ");
// end
// begin [file="/score.jsp";from=(23,6);to=(41,0)]
String class_id=request.getParameter("class_id");
String name=null;
String dep=null;
String sex=null;
int mark=0;
String e_mail=null;
String tel=null;
ResultSet rs=deter.getStudents2(class_id);
String stu_id=null;
while(rs.next()){
stu_id=rs.getString("id");
name=rs.getString("name");
dep=rs.getString("department");
sex=rs.getString("sex");
mark=rs.getInt("mark");
e_mail=rs.getString("e_mail");
tel=rs.getString("tel");
// end
// HTML // begin [file="/score.jsp";from=(41,2);to=(43,10)]
out.write("\r\n <tr> \r\n <td>");
// end
// begin [file="/score.jsp";from=(43,13);to=(43,17)]
out.print(name);
// end
// HTML // begin [file="/score.jsp";from=(43,19);to=(44,10)]
out.write("</td>\r\n <td>");
// end
// begin [file="/score.jsp";from=(44,13);to=(44,16)]
out.print(dep);
// end
// HTML // begin [file="/score.jsp";from=(44,18);to=(45,10)]
out.write("</td>\r\n <td>");
// end
// begin [file="/score.jsp";from=(45,13);to=(45,16)]
out.print(sex);
// end
// HTML // begin [file="/score.jsp";from=(45,18);to=(46,10)]
out.write("</td>\r\n <td>");
// end
// begin [file="/score.jsp";from=(46,13);to=(46,17)]
out.print(mark);
// end
// HTML // begin [file="/score.jsp";from=(46,19);to=(47,10)]
out.write("</td>\r\n <td>");
// end
// begin [file="/score.jsp";from=(47,13);to=(47,19)]
out.print(e_mail);
// end
// HTML // begin [file="/score.jsp";from=(47,21);to=(48,10)]
out.write("</td>\r\n <td>");
// end
// begin [file="/score.jsp";from=(48,13);to=(48,16)]
out.print(tel);
// end
// HTML // begin [file="/score.jsp";from=(48,18);to=(49,38)]
out.write("</td>\r\n <td><a href=\"marking.jsp?stu_id=");
// end
// begin [file="/score.jsp";from=(49,41);to=(49,47)]
out.print(stu_id);
// end
// HTML // begin [file="/score.jsp";from=(49,49);to=(49,59)]
out.write("&class_id=");
// end
// begin [file="/score.jsp";from=(49,62);to=(49,70)]
out.print(class_id);
// end
// HTML // begin [file="/score.jsp";from=(49,72);to=(51,0)]
out.write(" \">score</a></td>\r\n </tr>\r\n");
// end
// begin [file="/score.jsp";from=(51,2);to=(53,0)]
}
// end
// HTML // begin [file="/score.jsp";from=(53,2);to=(59,7)]
out.write("\t\r\n </table>\r\n <p> </p>\r\n <p align=\"left\"><a href=\"choosestu.jsp\"><<Back </a></p>\r\n</div>\r\n</body>\r\n</html>");
// end
} catch (Throwable t) {
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -