⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index2_0002ejsp_jsp.java

📁 网上选课程序:a.使用JSP/Servlet开发
💻 JAVA
字号:
import java.sql.*;
import java.util.*;
import java.io.*;
import java.lang.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class index2_0002ejsp_jsp extends HttpJspBase {

    // begin [file="/index2.jsp";from=(6,0);to=(6,59)]
    // end

    static {
    }
    public index2_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="/index2.jsp";from=(0,50);to=(1,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/index2.jsp";from=(1,46);to=(2,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/index2.jsp";from=(2,31);to=(3,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/index2.jsp";from=(3,29);to=(5,0)]
                out.write("\r\n\r\n");

            // end
            // HTML // begin [file="/index2.jsp";from=(5,31);to=(6,0)]
                out.write("\r\n");

            // end
            // begin [file="/index2.jsp";from=(6,0);to=(6,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="/index2.jsp";from=(6,0);to=(6,59)]
                }
            // end
            // HTML // begin [file="/index2.jsp";from=(6,59);to=(99,26)]
                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 {\r\n\tfont-size: 12px;\r\n\tcolor: #FFFFFF;\r\n}\r\na:visited {\r\n\tcolor: #FFFFFF;\r\n}\r\n.style1 {font-size: 12px}\r\n.style2 {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=\"226\" background=\"images/left_top.jpg\">\r\n        <tr>\r\n          <td width=\"231\">\r\n            <div align=\"center\">\r\n              <p>&nbsp;</p>\r\n              <p>&nbsp;</p>\r\n              <p>&nbsp;</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=\"teacherkccx.jsp\" class=\"style1\">【课程查询】</a></div></td>\r\n                </tr>\r\n                <tr>\r\n                  <td><div align=\"center\"><a href=\"teacherqbkb.jsp\">【全部课表】</a></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\">\r\n            <table width=\"510\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"455\">\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>\r\n                </td>\r\n              </tr>\r\n              <tr>\r\n                <td valign=\"top\">\r\n                  <div align=\"center\">\r\n                    <table width=\"82%\" height=\"158\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n                      <tr>\r\n                        <td height=\"68\">\r\n                          <p class=\"aaa\">&nbsp;</p>\r\n                          <div align=\"center\"></div></td>\r\n                      </tr>\r\n                      <tr>\r\n                        <td height=\"30\">欢迎您 \r\n                          ");

            // end
            // begin [file="/index2.jsp";from=(99,28);to=(106,0)]
                 String sql = "select teaname from teacher where teaid = '"+session.getValue("wnum")+"'";
                	ResultSet rs=subject.executeQuery(sql);
                	while (rs.next())
                {
                	out.print(rs.getString("teaname"));
                }
                
            // end
            // HTML // begin [file="/index2.jsp";from=(106,2);to=(156,7)]
                out.write("\r\n                        老师:</td>\r\n                      </tr>\r\n                      <tr>\r\n                        <td height=\"30\">点击左面的菜单进行所授课程查询</td>\r\n                      </tr>\r\n                      <tr>\r\n                        <td height=\"30\">&nbsp;</td>\r\n                      </tr>\r\n                    </table>\r\n                    <table width=\"82%\" height=\"65\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n                      <tr>\r\n                        <td height=\"65\">\r\n                        <div align=\"center\"></div>                          <p>&nbsp;</p></td>\r\n                      </tr>\r\n                    </table>\r\n                  </div>\r\n                </td>\r\n              </tr>\r\n            </table>\r\n          </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              <p>  <font color=\"#2DFFFF\" size=\"5\"> </font></p>\r\n              <p>&nbsp;  </p>\r\n              <p> <strong><font color=\"#2DFFFF\" size=\"5\"> </font></strong></p>\r\n              <p class=\"aaa\"><a href=\"index1.htm\" class=\"style2\">[退出系统]</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 + -