📄 choosestu_0002ejsp_jsp.java
字号:
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class choosestu_0002ejsp_jsp extends HttpJspBase {
// begin [file="/choosestu.jsp";from=(6,0);to=(6,56)]
// end
static {
}
public choosestu_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="/choosestu.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>挑选您的学生</title>\r\n</head>\r\n");
// end
// begin [file="/choosestu.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="/choosestu.jsp";from=(6,0);to=(6,56)]
}
// end
// HTML // begin [file="/choosestu.jsp";from=(6,56);to=(8,0)]
out.write("\r\n<body bgcolor=\"#0099FF\" text=\"#FFFFFF\" link=\"#00FF00\">\r\n");
// end
// begin [file="/choosestu.jsp";from=(8,2);to=(10,0)]
String tea_id=(String)session.getAttribute("id");
// end
// HTML // begin [file="/choosestu.jsp";from=(10,2);to=(20,0)]
out.write("\r\n<div align=\"center\">\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 </tr>\r\n");
// end
// begin [file="/choosestu.jsp";from=(20,2);to=(27,0)]
String class_id=null;
String cour_name=null;
ResultSet rs=deter.getClass(tea_id);
while(rs.next()){
class_id=rs.getString("id");
cour_name=rs.getString("name");
// end
// HTML // begin [file="/choosestu.jsp";from=(27,2);to=(29,10)]
out.write("\t\r\n <tr> \r\n <td>");
// end
// begin [file="/choosestu.jsp";from=(29,13);to=(29,21)]
out.print(class_id);
// end
// HTML // begin [file="/choosestu.jsp";from=(29,23);to=(30,10)]
out.write("</td>\r\n <td>");
// end
// begin [file="/choosestu.jsp";from=(30,13);to=(30,22)]
out.print(cour_name);
// end
// HTML // begin [file="/choosestu.jsp";from=(30,24);to=(31,37)]
out.write("</td>\r\n <td><a href=\"MarkSvlt?class_id=");
// end
// begin [file="/choosestu.jsp";from=(31,40);to=(31,48)]
out.print(class_id);
// end
// HTML // begin [file="/choosestu.jsp";from=(31,50);to=(31,61)]
out.write("&cour_name=");
// end
// begin [file="/choosestu.jsp";from=(31,64);to=(31,73)]
out.print(cour_name);
// end
// HTML // begin [file="/choosestu.jsp";from=(31,75);to=(33,0)]
out.write("&action=accept \">选择</a></td>\r\n </tr>\r\n");
// end
// begin [file="/choosestu.jsp";from=(33,2);to=(35,0)]
}
// end
// HTML // begin [file="/choosestu.jsp";from=(35,2);to=(41,0)]
out.write("\r\n </table>\r\n <p> </p><p align=\"left\"><a href=\"teacher.jsp\"><<Back</a></p>\r\n</div>\r\n</body>\r\n</html>\r\n");
// 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 + -