cjcx_0002ejsp_jsp.java
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:11k
源码类别:

Jsp/Servlet

开发平台:

VBScript

  1. import java.sql.*;
  2. import javax.servlet.*;
  3. import javax.servlet.http.*;
  4. import javax.servlet.jsp.*;
  5. import org.apache.jasper.runtime.*;
  6. public class cjcx_0002ejsp_jsp extends HttpJspBase {
  7.     static {
  8.     }
  9.     public cjcx_0002ejsp_jsp( ) {
  10.     }
  11.     private static boolean _jspx_inited = false;
  12.     public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
  13.     }
  14.     public void _jspService(HttpServletRequest request, HttpServletResponse  response)
  15.         throws java.io.IOException, ServletException {
  16.         JspFactory _jspxFactory = null;
  17.         PageContext pageContext = null;
  18.         HttpSession session = null;
  19.         ServletContext application = null;
  20.         ServletConfig config = null;
  21.         JspWriter out = null;
  22.         Object page = this;
  23.         String  _value = null;
  24.         try {
  25.             if (_jspx_inited == false) {
  26.                 synchronized (this) {
  27.                     if (_jspx_inited == false) {
  28.                         _jspx_init();
  29.                         _jspx_inited = true;
  30.                     }
  31.                 }
  32.             }
  33.             _jspxFactory = JspFactory.getDefaultFactory();
  34.             response.setContentType("text/html; charset=GBK");
  35.             pageContext = _jspxFactory.getPageContext(this, request, response,
  36.              "", true, 8192, true);
  37.             application = pageContext.getServletContext();
  38.             config = pageContext.getServletConfig();
  39.             session = pageContext.getSession();
  40.             out = pageContext.getOut();
  41.             // HTML // begin [file="/cjcx.jsp";from=(0,48);to=(1,0)]
  42.                 out.write("rn");
  43.             // end
  44.             // HTML // begin [file="/cjcx.jsp";from=(1,29);to=(13,0)]
  45.                 out.write("rn<html>rn  <style type="TEXT/CSS">rn  A:LINK{COLOR:BLUE;FONT-SIZE:9PT;TEXT-DECORATION:NONE}rn  A:VISITED{COLOR:8486C3;FONT-SIZE:9PT;TEXT-DECORATION:NONE}rn   A:HOVER{COLOR:GREEN;FONT-SIZE:10PT;TEXT-DECORATION:UNDERLINE}</STYLE>rn<head>rn<title>rn  学生信息页面rn</title>rn</head>rn<body ONLOAD="webclock()" background="img/bg3.jpg" text="#808080" link="#FF99CC" vlink="#FF8080" alink="#FF99CC" topmargin="0" leftmargin="0">rn");
  46.             // end
  47.             // begin [file="/cjcx.jsp";from=(13,2);to=(60,0)]
  48.                 
  49.                 Connection conn = null;
  50.                 Statement stmt = null;
  51.                 ResultSet rs = null;
  52.                 try{
  53.                  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
  54.                 }
  55.                 catch(ClassNotFoundException ce){
  56.                  out.println(ce.getMessage());
  57.                 }
  58.                 request.setCharacterEncoding("GBK");
  59.                 String str = request.getParameter("user");
  60.                 if( str == null)
  61.                  str = "";
  62.                       else
  63.                 try{
  64.                  conn=DriverManager.getConnection("jdbc:odbc:dsn112");
  65.                  stmt=conn.createStatement();
  66.                         rs=stmt.executeQuery("SELECT * FROM Info WHERE name LIKE '%" + str + "%'");
  67.                         out.print("<TABLE  align='center' width='70%'  BORDER='0'>");
  68.                          out.print("<tr bgcolor='EcEcff' align='center'><TD>姓名</TD>");
  69.                  out.print("<TD>性别</TD>");
  70.                  out.print("<TD>年龄</TD>");
  71.                  out.print("<TD>专业</TD>");
  72.                                 out.print("<TD>入学时间</TD>");
  73.                                 out.print("<TD>联系方式</TD>");
  74.                        out.print("<TD>地址</TD></TR>");
  75.                  while(rs.next()){
  76.                  out.print("<tr bgcolor='FFEFEF' align='center'><TD>"+rs.getString("name")+"</TD>");
  77.                  out.print("<TD>"+rs.getString("sex")+"</TD>");
  78.                  out.print("<TD>"+rs.getString("age")+"</TD>");
  79.                  out.print("<TD>"+rs.getString("dept")+"</TD>");
  80.                                 out.print("<TD>"+rs.getString("ruxdate")+"</TD>");
  81.                                  out.print("<TD>"+rs.getString("tel")+"</TD>");
  82.                  out.print("<TD>"+rs.getString("address")+"</TD></TR>");
  83.                  }
  84.                  out.print("</TABLE>");
  85.                 
  86.                 }
  87.                 catch(SQLException e){
  88.                  System.out.println(e.getMessage());
  89.                 }
  90.                 finally{
  91.                  stmt.close();
  92.                  conn.close();
  93.                 }
  94.                 
  95.             // end
  96.             // HTML // begin [file="/cjcx.jsp";from=(60,2);to=(187,0)]
  97.                 out.write("rn <TABLE cellSpacing=0 cellPadding=0 width=776 align=center border=0>rn  <TBODY>rn  <TR>rn    <TD bgColor=#efefef height=28>rn  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>rn        <TBODY>rn        <TR>rn          <TD align="center"><img src="img/top_image.jpg"></TD></tr>rn          <tr><TD background="img/dh_bg.jpg" height="32"  width="778">rn            &nbsp;rn            <SCRIPT language=JavaScript>rn<!-- Beginrn  var enable=0;rn  today=new Date();rn  var day;rn  var date;rn  var time_start = new Date();rn  var clock_start = time_start.getTime();rn if(today.getDay()==0)  day="星期日"rn  if(today.getDay()==1)  day="星期一"rn  if(today.getDay()==2)  day="星期二"rn  if(today.getDay()==3)  day="星期三"rn if(today.getDay()==4)  day="星期四"rn if(today.getDay()==5)  day="星期五"rn if(today.getDay()==6)  day="星期六"rndate=(today.getYear())+"年"+(today.getMonth()+1)+"月";rn   rz=today.getDate()rn   document.write ("<style=font-size=9pt> ");rndocument.write(date);rnrndocument.write(rz);rndocument.write ("日  </font>  ");rndocument.write(day);rndocument.write ("</style>");rn//-->rntttttt</SCRIPT>&nbsp;&nbsp;rn            当前目录:<A href="http://www.jxzp.cn/rencai/">江西招聘网</A>rn            &gt;&gt; <Arn        href="http://www.jxzp.cn/rencai/MEMBER/">个人用户管理中心</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>rn<TABLE cellSpacing=0 cellPadding=0 width=776 align=center border=0>rn  <TBODY>rn  <TR>rn    <TD height=10></TD></TR></TBODY></TABLE>rn<TABLE cellSpacing=0 cellPadding=0 width=776 align=center border=0>rn  <TBODY>rn  <TR>rn    <TD vAlign=top align=middle height=164>rn      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>rn        <TBODY>rn        <TR>rn          <TD vAlign=top align=middle width="22%" height=265>rn            <TABLE cellSpacing=0 cellPadding=0 width=180 border=0>rn              <TBODY>rn              <TR>rn                <TD width=180><IMG height=42 src="haha.files/ls_1_bg_5.gif"rn                  width=180></TD></TR>rn              <TR>rn                <TD align=middle background="haha.files/ls_1_bg.gif"rn              height=5></TD></TR>rn              <TR>rn                <TD vAlign=top align=middle background="haha.files/ls_1_bg.gif"rn                height=118><BR>rn                  <STYLE type="text/css">.style1 {rntCOLOR: #ff0000rn}rn</STYLE>rnrn                  <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>rn                    <TBODY>rn                    <TR>rn                      <TD align=middle><STRONG><a href="gerenzil.jsp">个人档案</STRONG><BR><Arn                        href="">个人首页</A><BR><Arn                        href="http://www.jxzp.cn/rencai/MEMBER/Basicinfo.asp">基本资料</A><BR><Arn                        href="http://www.jxzp.cn/rencai/MEMBER/Education.asp">教育背景</A><BR><Arn                        href="http://www.jxzp.cn/rencai/MEMBER/Work.asp">工作经历</A><BR><Arn                        href="http://www.jxzp.cn/rencai/MEMBER/Editpassword.asp">用户密码</A>rn                      </TD></TR>rn                    <TR>rn                      <TD align=middle><STRONG>辅助工具</STRONG><BR><Arn                        href="http://www.jxzp.cn/rencai/MEMBER/Uploadphoto.asp">上传照片</A>rn                      </TD></TR>rn                    <TR>rn                      <TD align=middle><STRONG>求职中心</STRONG><BR><Arn                        href="http://www.jxzp.cn/rencai/MEMBER/willjob.asp">求职意向</A><BR><Arn                        href="http://www.jxzp.cn/rencai/MEMBER/Myresume.asp">简历预览</A><BR><Arn                        href="http://www.jxzp.cn/rencai/MEMBER/Adsearch.asp">高级搜索</A><BR><Arn                        class=style1rn                        href="http://www.jxzp.cn/rencai/MEMBER/newjob.asp">最新招聘</A><BR><Arn                        href="http://www.jxzp.cn/rencai/MEMBER/Myfavorite.asp">收藏夹管理</A><BR><Arn                        href="http://www.jxzp.cn/rencai/MEMBER/Willmanage.asp">意向管理</A><BR><Arn                        href="http://www.jxzp.cn/rencai/MEMBER/Serveflow.asp">服务流程</A>rn                      </TD></TR>rn                    <TR>rn                      <TD align=middle><STRONG>培训专区<BR></STRONG><Arn                        href="http://www.jxzp.cn/rencai/MEMBER/train.asp">最新培训信息</A><STRONG>rn                        </STRONG></TD></TR>rn                    <TR>rn                      <TD align=middle><STRONG>猎头专区<BR></STRONG><Arn                        href="http://www.jxzp.cn/rencai/MEMBER/huntServeflow.asp">服务流程</A><STRONG>rn                        </STRONG></TD></TR>rn                    <TR>rn                      <TD align=middle><STRONG>帮助中心<BR></STRONG><Arn                        href="http://www.jxzp.cn/rencai/help/index.asp"rn                        target=_blank>个人用户帮助说明</A><STRONG> </STRONG></TD></TR>rn                    <TR>rn                      <TD align=middle><STRONG><Arn                        href="http://www.jxzp.cn/rencai/MEMBER/QuitLogin.asp">退出登录</A></STRONG></TD></TR></TBODY></TABLE></TD></TR>rn              <TR>rn                <TD><IMG height=11 src="haha.files/ls_1_bg_1.gif"rn              width=180></TD></TR></TBODY></TABLE></TD>rn          <TD vAlign=top align=middle width="78%">rn            <TABLE height=5 cellSpacing=1 cellPadding=0 width="90%" align=centerrn            bgColor=#cccccc border=0>rn              <TBODY>rn              <TR>rn                <TD bgColor=#f3f3f3 height=25>rn                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>rn                    <TBODY>rn                    <TR>rn                      <TD width="6%">&nbsp;</TD>rn                      <TDrn            width="94%"><iframe  frameborder="0"  name="body" src="ckgg.jsp" align="top" height="450" width="600" id="body" >rn      </iframe></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>rnrn</body>rn</html>rn");
  98.             // end
  99.         } catch (Throwable t) {
  100.             if (out != null && out.getBufferSize() != 0)
  101.                 out.clearBuffer();
  102.             if (pageContext != null) pageContext.handlePageException(t);
  103.         } finally {
  104.             if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
  105.         }
  106.     }
  107. }