cjcx_0002ejsp_jsp.java
资源名称:JSP02.rar [点击查看]
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:11k
源码类别:
Jsp/Servlet
开发平台:
VBScript
- import java.sql.*;
- import javax.servlet.*;
- import javax.servlet.http.*;
- import javax.servlet.jsp.*;
- import org.apache.jasper.runtime.*;
- public class cjcx_0002ejsp_jsp extends HttpJspBase {
- static {
- }
- public cjcx_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=GBK");
- pageContext = _jspxFactory.getPageContext(this, request, response,
- "", true, 8192, true);
- application = pageContext.getServletContext();
- config = pageContext.getServletConfig();
- session = pageContext.getSession();
- out = pageContext.getOut();
- // HTML // begin [file="/cjcx.jsp";from=(0,48);to=(1,0)]
- out.write("rn");
- // end
- // HTML // begin [file="/cjcx.jsp";from=(1,29);to=(13,0)]
- 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");
- // end
- // begin [file="/cjcx.jsp";from=(13,2);to=(60,0)]
- Connection conn = null;
- Statement stmt = null;
- ResultSet rs = null;
- try{
- Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
- }
- catch(ClassNotFoundException ce){
- out.println(ce.getMessage());
- }
- request.setCharacterEncoding("GBK");
- String str = request.getParameter("user");
- if( str == null)
- str = "";
- else
- try{
- conn=DriverManager.getConnection("jdbc:odbc:dsn112");
- stmt=conn.createStatement();
- rs=stmt.executeQuery("SELECT * FROM Info WHERE name LIKE '%" + str + "%'");
- out.print("<TABLE align='center' width='70%' BORDER='0'>");
- out.print("<tr bgcolor='EcEcff' align='center'><TD>姓名</TD>");
- out.print("<TD>性别</TD>");
- out.print("<TD>年龄</TD>");
- out.print("<TD>专业</TD>");
- out.print("<TD>入学时间</TD>");
- out.print("<TD>联系方式</TD>");
- out.print("<TD>地址</TD></TR>");
- while(rs.next()){
- out.print("<tr bgcolor='FFEFEF' align='center'><TD>"+rs.getString("name")+"</TD>");
- out.print("<TD>"+rs.getString("sex")+"</TD>");
- out.print("<TD>"+rs.getString("age")+"</TD>");
- out.print("<TD>"+rs.getString("dept")+"</TD>");
- out.print("<TD>"+rs.getString("ruxdate")+"</TD>");
- out.print("<TD>"+rs.getString("tel")+"</TD>");
- out.print("<TD>"+rs.getString("address")+"</TD></TR>");
- }
- out.print("</TABLE>");
- }
- catch(SQLException e){
- System.out.println(e.getMessage());
- }
- finally{
- stmt.close();
- conn.close();
- }
- // end
- // HTML // begin [file="/cjcx.jsp";from=(60,2);to=(187,0)]
- 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 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> rn 当前目录:<A href="http://www.jxzp.cn/rencai/">江西招聘网</A>rn >> <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%"> </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");
- // 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);
- }
- }
- }