📄 studentcjcx_0002ejsp_jsp.java
字号:
import java.sql.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class studentcjcx_0002ejsp_jsp extends HttpJspBase {
// begin [file="/studentcjcx.jsp";from=(2,0);to=(2,59)]
// end
static {
}
public studentcjcx_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,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/studentcjcx.jsp";from=(0,69);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/studentcjcx.jsp";from=(1,44);to=(2,0)]
out.write("\r\n");
// end
// begin [file="/studentcjcx.jsp";from=(2,0);to=(2,59)]
wsxk.ConDB subject = null;
boolean _jspx_specialsubject = false;
synchronized (pageContext) {
subject= (wsxk.ConDB)
pageContext.getAttribute("subject",PageContext.PAGE_SCOPE);
if ( subject == null ) {
_jspx_specialsubject = true;
try {
subject = (wsxk.ConDB) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "wsxk.ConDB");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"wsxk.ConDB", exc);
}
pageContext.setAttribute("subject", subject, PageContext.PAGE_SCOPE);
}
}
if(_jspx_specialsubject == true) {
// end
// begin [file="/studentcjcx.jsp";from=(2,0);to=(2,59)]
}
// end
// HTML // begin [file="/studentcjcx.jsp";from=(2,59);to=(3,0)]
out.write("\r\n");
// end
// begin [file="/studentcjcx.jsp";from=(3,2);to=(16,0)]
String titlelist[];
titlelist = new String[99999];
String strSQL = "select couid ,couname from course ";
ResultSet rs = subject.executeQuery(strSQL);
int length = 0;
while(rs.next())
{
String id = rs.getString("couid");
String title = rs.getString("couname").trim();
titlelist[length] = title;
length++;
}
// end
// HTML // begin [file="/studentcjcx.jsp";from=(16,2);to=(111,28)]
out.write("\r\n\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<link href=\"_notes/aaa.css\" rel=\"stylesheet\" type=\"text/css\">\r\n<style type=\"text/css\">\r\n<!--\r\n@import url(\"_notes/ccc\");\r\nbody,td,th {\r\n\tfont-size: 12px;\r\n\tcolor: #FFFFFF;\r\n\tfont-weight: bold;\r\n}\r\na:link {\r\n\tcolor: #FFFFFF;\r\n}\r\na:visited {\r\n\tcolor: #FFFFFF;\r\n}\r\n.style1 {font-size: 14px}\r\n-->\r\n</style>\r\n</HEAD>\r\n<BODY BGCOLOR=#0D85A6 BACKGROUND=\"images/bg.gif\" >\r\n\r\n<br>\r\n<br>\r\n<TABLE WIDTH=750 height=\"494\" BORDER=0 align=\"center\" CELLPADDING=0 CELLSPACING=0>\r\n <TR> \r\n <TD> <IMG SRC=\"images/spacer.gif\" WIDTH=231 HEIGHT=1></TD>\r\n <TD> <IMG SRC=\"images/spacer.gif\" WIDTH=4 HEIGHT=1></TD>\r\n <TD> <IMG SRC=\"images/spacer.gif\" WIDTH=75 HEIGHT=1></TD>\r\n <TD> <IMG SRC=\"images/spacer.gif\" WIDTH=110 HEIGHT=1></TD>\r\n <TD> <IMG SRC=\"images/spacer.gif\" WIDTH=110 HEIGHT=1></TD>\r\n <TD> <IMG SRC=\"images/spacer.gif\" WIDTH=110 HEIGHT=1></TD>\r\n <TD> <IMG SRC=\"images/spacer.gif\" WIDTH=105 HEIGHT=1></TD>\r\n <TD> <IMG SRC=\"images/spacer.gif\" WIDTH=5 HEIGHT=1></TD>\r\n </TR>\r\n <TR> \r\n <TD COLSPAN=4> <IMG SRC=\"images/temp_01.jpg\" WIDTH=420 HEIGHT=15></TD>\r\n <TD COLSPAN=4> <IMG SRC=\"images/temp_02.jpg\" WIDTH=330 HEIGHT=15></TD>\r\n </TR>\r\n <TR> \r\n <TD COLSPAN=8> <IMG SRC=\"images/temp_03.jpg\" WIDTH=750 HEIGHT=5></TD>\r\n </TR>\r\n <TR> \r\n <TD> \r\n <table width=\"231\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"225\" background=\"images/left_top.jpg\">\r\n <tr> \r\n <td width=\"231\" height=\"225\" valign=\"bottom\"> \r\n <div align=\"center\"> \r\n <p> </p>\r\n <p>成绩查询</p>\r\n <p>在这里您可以对成绩<br>\r\n 以及课表进行查询\r\n </p>\r\n <p> <font color=\"#2DFFFF\" size=\"5\"><strong> </strong></font></p>\r\n <table width=\"200\" border=\"1\">\r\n <tr>\r\n <td><div align=\"center\"><a href=\"studentwsxk.jsp\">【网上选课】</a></div></td>\r\n </tr>\r\n <tr>\r\n <td><div align=\"center\">【成绩查询】</div></td>\r\n </tr>\r\n <tr>\r\n <td><div align=\"center\">【书籍购买】</div></td>\r\n </tr>\r\n </table>\r\n <p> <strong><font color=\"#2DFFFF\" size=\"5\"> </font></strong></p>\r\n </div> </td>\r\n </tr>\r\n </table>\r\n </TD>\r\n <TD ROWSPAN=2> <IMG SRC=\"images/temp_05.jpg\" WIDTH=4 HEIGHT=455></TD>\r\n <TD COLSPAN=5 ROWSPAN=2> \r\n <table width=\"510\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"455\" background=\"images/main_bg.jpg\">\r\n <tr> \r\n <td width=\"510\" valign=\"top\"><table width=\"510\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"391\">\r\n <tr>\r\n <td width=\"510\" height=\"78\">\r\n <div align=\"center\"><img src=\"images/blank_banner.gif\" width=\"468\" height=\"60\"></div></td>\r\n </tr>\r\n <tr>\r\n <td height=\"12\" valign=\"top\"> <div align=\"left\"><a href=\"index1.htm\">首页</a>><a href=\"index1.jsp\">学生</a>>成绩查询</div></td>\r\n </tr>\r\n <tr>\r\n <td height=\"301\" valign=\"middle\"><div align=\"center\">\r\n <form name=\"form1\" method=\"post\" action=\"studentcjcx2.jsp\">\r\n <table width=\"350\" border=\"0\">\r\n <tr>\r\n <td colspan=\"2\"><div align=\"center\">按课程查询\r\n <select name=\"select\">\r\n <option value=\"0\" selected>选择要查询的课程</option>\r\n\t\t\t\t\t\t\t \r\n ");
// end
// begin [file="/studentcjcx.jsp";from=(111,30);to=(113,9)]
for (int i = 0; i < length; i++)
out.print("<option>" + titlelist[i].trim() + "</option>");
// end
// HTML // begin [file="/studentcjcx.jsp";from=(113,11);to=(194,7)]
out.write("\r\n </select>\r\n </div></td>\r\n </tr>\r\n <tr>\r\n <td width=\"264\"><div align=\"right\">\r\n <input type=\"submit\" name=\"Submit\" value=\"点击查询\">\r\n </div></td>\r\n <td width=\"76\"> </td>\r\n </tr>\r\n </table>\r\n </form>\r\n <form name=\"form4\" method=\"post\" action=\"studentcjcx3.jsp\">\r\n <table width=\"350\" border=\"0\">\r\n <tr>\r\n <td colspan=\"2\"><div align=\"center\">按学期查询\r\n <select name=\"select2\">\r\n <option value=\"0\" selected>选择要查询的学期</option>\r\n <option value=\"1\">第一学年</option>\r\n <option value=\"2\">第二学年</option>\r\n <option value=\"3\">第三学年</option>\r\n <option value=\"4\">第四学年</option>\r\n </select>\r\n</div></td>\r\n </tr>\r\n <tr>\r\n <td width=\"267\"><div align=\"right\">\r\n <input type=\"submit\" name=\"Submit2\" value=\"点击查询\">\r\n </div></td>\r\n <td width=\"73\"> </td>\r\n </tr>\r\n </table>\r\n <div align=\"center\"></div>\r\n </form>\r\n <form name=\"form2\" method=\"post\" action=\"\">\r\n <table width=\"350\" border=\"0\">\r\n <tr>\r\n <td width=\"145\"><div align=\"right\"></div> \r\n <div align=\"right\"><a href=\"studentqbkb.jsp\">总成绩单</a></div></td>\r\n <td width=\"121\">\r\n <div align=\"right\"><a href=\"studentxkd.jsp\">总选课单</a></div></td>\r\n <td width=\"70\"> </td>\r\n </tr>\r\n </table> \r\n </form>\r\n </div></td>\r\n </tr>\r\n </table></td>\r\n </tr>\r\n </table>\r\n </TD>\r\n <TD ROWSPAN=2> <IMG SRC=\"images/temp_07.jpg\" WIDTH=5 HEIGHT=455></TD>\r\n </TR>\r\n <TR> \r\n <TD> \r\n <table width=\"231\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"229\" background=\"images/left_bottom.jpg\">\r\n <tr> \r\n <td width=\"231\" height=\"222\"> \r\n <div align=\"center\">\r\n <table width=\"200\" border=\"1\">\r\n <tr>\r\n <td><div align=\"center\"><a href=\"lyb.jsp\">【留言板】</a></div></td>\r\n </tr>\r\n </table>\r\n <p> </p>\r\n <p> <strong><font color=\"#2DFFFF\" size=\"5\"> </font></strong></p>\r\n <p class=\"aaa\"><a href=\"index1.htm\" class=\"style1\">[退出系统]</a></p>\r\n </div>\r\n </td>\r\n </tr>\r\n </table>\r\n </TD>\r\n </TR>\r\n <TR> \r\n <TD COLSPAN=8> <IMG SRC=\"images/temp_09.jpg\" WIDTH=750 HEIGHT=5></TD>\r\n </TR>\r\n <TR> \r\n <TD COLSPAN=8> <img src=\"images/temp_10.jpg\" width=752 height=20></TD>\r\n </TR>\r\n</TABLE>\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 + -