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

📄 del_0002ejsp_jsp.java

📁 基于J2EE的个人数字助理系统,大家参考下,提出宝贵意见
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class del_0002ejsp_jsp extends HttpJspBase {

    // begin [file="/del.jsp";from=(52,3);to=(52,15)]
         boolean b; 
    // end

    static {
    }
    public del_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="/del.jsp";from=(0,0);to=(50,0)]
                out.write("<SCRIPT language=\"javascript\">\r\nfunction backward()\r\n{\r\n      history.back();\r\n}\r\n</SCRIPT>\r\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n\"http://www.w3.org/TR/html4/loose.dtd\">\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>好友信息</title>\r\n<script language=\"JavaScript\" type=\"text/JavaScript\">\r\n<!--\r\nfunction MM_reloadPage(init) {  //reloads the window if Nav4 resized\r\n  if (init==true) with (navigator) {if ((appName==\"Netscape\")&&(parseInt(appVersion)==4)) {\r\n    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}\r\n  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();\r\n}\r\nMM_reloadPage(true);\r\n//-->\r\n</script>\r\n<style type=\"text/css\">\r\n<!--\r\n.style2 {\r\n\tfont-family: \"华文中宋\";\r\n\tcolor: #FF9900;\r\n}\r\n.style5 {font-size: 18px; font-family: \"华文行楷\"; color: #FF6600; }\r\n.style7 {font-size: 18px; font-family: \"华文中宋\"; color: #FF6600; }\r\n.style9 {font-family: \"华文中宋\"}\r\n.style11 {font-family: \"华文行楷\"}\r\n.style22 {color: #FF0000}\r\n.style13 {font-size: 24px}\r\n.style14 {font-family: \"华文行楷\"; font-size: 18px; }\r\n.style15 {color: #FF9900}\r\n.style17 {font-size: 24}\r\n.style18 {font-size: 16px}\r\n.style19 {font-size: 18px}\r\na:link { text-decoration: none;color: #FF6600}\r\n   a:active { text-decoration:blink}\r\n   a:hover { text-decoration:underline;color: red}\r\n   a:visited { text-decoration: none;color: green}\r\nbody {\r\n\tbackground-color: #99CCFF;\r\n}\r\n-->\r\n</style>\r\n<link href=\"qq.css\" rel=\"stylesheet\" type=\"text/css\">\r\n</head>\r\n");

            // end
            // HTML // begin [file="/del.jsp";from=(50,48);to=(51,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/del.jsp";from=(51,30);to=(52,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/del.jsp";from=(52,17);to=(53,0)]
                out.write("\r\n");

            // end
            // begin [file="/del.jsp";from=(53,2);to=(76,0)]
                
                        String strname;
                        strname = request.getParameter("name");
                        byte[] tmpbyte=strname.getBytes("ISO8859_1");
                        strname=new String(tmpbyte);
                    try{
                		Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                	        }catch(ClassNotFoundException e){
                		       System.out.println(e.getMessage());
                	}
                        String sql = "select * from booknote where name='"+strname+"'";
                	try{
                                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                		Connection cnCon = DriverManager.getConnection("jdbc:odbc:shm"," "," ");
                		Statement stmt = cnCon.createStatement();
                		ResultSet rs = stmt.executeQuery(sql);
                		b=rs.next();
                              }catch(SQLException e){
                		System.out.println(e.getMessage());
                	}
                   if(b==true)
                  {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -