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

📄 user_0005fxian_0002ejsp_jsp.java

📁 利用JSP技术开发BBS系统 ,本软件使用JAVA语言实现
💻 JAVA
字号:
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class user_0005fxian_0002ejsp_jsp extends HttpJspBase {


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

            // end
            // HTML // begin [file="/user_xian.jsp";from=(1,31);to=(8,0)]
                out.write("\r\n<html>\r\n<head>\r\n<title>显示会员信息</title>\r\n</head>\r\n<body bgcolor=\"#ffffff\">\r\n\r\n");

            // end
            // begin [file="/user_xian.jsp";from=(8,2);to=(19,0)]
                
                   Connection conn=null;
                   Statement stmt=null;
                   ResultSet rs=null;
                 try{
                  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                  conn=DriverManager.getConnection("jdbc:odbc:bbs","","");
                  int userid=Integer.parseInt(request.getParameter("userid"));
                  stmt=conn.createStatement();
                  rs=stmt.executeQuery("select * from user  where userid="+userid);
                  while(rs.next()){
            // end
            // HTML // begin [file="/user_xian.jsp";from=(19,2);to=(23,61)]
                out.write("\r\n<form name=\"form1\" method=\"post\" action=\"admin_userupdate.jsp\">\r\n<table border=\"0\" >\r\n<tr><td>用户名</td>\r\n<td><input name=\"name\" type=\"text\" size=\"15\" readonly value=\"");

            // end
            // begin [file="/user_xian.jsp";from=(23,64);to=(23,79)]
                out.print(rs.getString(2));
            // end
            // HTML // begin [file="/user_xian.jsp";from=(23,81);to=(25,60)]
                out.write("\"></td></tr>\r\n<tr><td>密码</td>\r\n<td><input name=\"password\" type=\"password\" size=\"15\" value=\"");

            // end
            // begin [file="/user_xian.jsp";from=(25,63);to=(25,78)]
                out.print(rs.getString(3));
            // end
            // HTML // begin [file="/user_xian.jsp";from=(25,80);to=(27,54)]
                out.write("\"></td></tr>\r\n<tr><td>呢称</td>\r\n<td><input name=\"nichen\" type=\"text\" size=\"15\" value=\"");

            // end
            // begin [file="/user_xian.jsp";from=(27,57);to=(27,72)]
                out.print(rs.getString(4));
            // end
            // HTML // begin [file="/user_xian.jsp";from=(27,74);to=(29,51)]
                out.write("\"></td></tr>\r\n<tr><td>性别</td>\r\n<td><input name=\"sex\" type=\"text\" size=\"15\" value=\"");

            // end
            // begin [file="/user_xian.jsp";from=(29,54);to=(29,69)]
                out.print(rs.getString(5));
            // end
            // HTML // begin [file="/user_xian.jsp";from=(29,71);to=(31,56)]
                out.write("\"></td></tr>\r\n<tr><td>生日</td>\r\n<td><input name=\"brithday\" type=\"text\" size=\"15\" value=\"");

            // end
            // begin [file="/user_xian.jsp";from=(31,59);to=(31,74)]
                out.print(rs.getString(6));
            // end
            // HTML // begin [file="/user_xian.jsp";from=(31,76);to=(33,52)]
                out.write("\"></td></tr>\r\n<tr><td>来自</td>\r\n<td><input name=\"from\" type=\"text\" size=\"15\" value=\"");

            // end
            // begin [file="/user_xian.jsp";from=(33,55);to=(33,70)]
                out.print(rs.getString(7));
            // end
            // HTML // begin [file="/user_xian.jsp";from=(33,72);to=(35,54)]
                out.write("\"></td></tr>\r\n<tr><td>E-mail</td>\r\n<td><input name=\"E-mail\" type=\"text\" size=\"15\" value=\"");

            // end
            // begin [file="/user_xian.jsp";from=(35,57);to=(35,72)]
                out.print(rs.getString(8));
            // end
            // HTML // begin [file="/user_xian.jsp";from=(35,74);to=(37,53)]
                out.write("\"></td></tr>\r\n<tr><td>个人主页</td>\r\n<td><input name=\"zhuye\" type=\"text\" size=\"15\" value=\"");

            // end
            // begin [file="/user_xian.jsp";from=(37,56);to=(37,71)]
                out.print(rs.getString(9));
            // end
            // HTML // begin [file="/user_xian.jsp";from=(37,73);to=(39,50)]
                out.write("\"></td></tr>\r\n<tr><td>QQ</td>\r\n<td><input name=\"QQ\" type=\"text\" size=\"15\" value=\"");

            // end
            // begin [file="/user_xian.jsp";from=(39,53);to=(39,69)]
                out.print(rs.getString(10));
            // end
            // HTML // begin [file="/user_xian.jsp";from=(39,71);to=(41,51)]
                out.write("\"></td></tr>\r\n<tr><td>MSN</td>\r\n<td><input name=\"MSN\" type=\"text\" size=\"15\" value=\"");

            // end
            // begin [file="/user_xian.jsp";from=(41,54);to=(41,70)]
                out.print(rs.getString(11));
            // end
            // HTML // begin [file="/user_xian.jsp";from=(41,72);to=(43,26)]
                out.write("\"></td></tr>\r\n<tr><td>个性签名</td>\r\n<td><textarea name=\"info\">");

            // end
            // begin [file="/user_xian.jsp";from=(43,29);to=(43,45)]
                out.print(rs.getString(16));
            // end
            // HTML // begin [file="/user_xian.jsp";from=(43,47);to=(44,46)]
                out.write("</textarea></td>\r\n<td><input type=\"hidden\" name=\"userid\" value=\"");

            // end
            // begin [file="/user_xian.jsp";from=(44,49);to=(44,64)]
                out.print(rs.getString(1));
            // end
            // HTML // begin [file="/user_xian.jsp";from=(44,66);to=(51,0)]
                out.write("\"></td></tr>\r\n<tr align=\"center\">\r\n<td colspan=\"2\">\r\n<input  type=\"submit\" value=\"修改\">\r\n<input  type=\"reset\" value=\"重填\">\r\n</td>\r\n</tr>\r\n");

            // end
            // begin [file="/user_xian.jsp";from=(51,2);to=(51,3)]
                }
            // end
            // HTML // begin [file="/user_xian.jsp";from=(51,5);to=(55,0)]
                out.write("\r\n</tr>\r\n</table>\r\n</form>\r\n");

            // end
            // begin [file="/user_xian.jsp";from=(55,2);to=(59,0)]
                
                }catch(Exception e){
                  out.println(e.getMessage());
                }
            // end
            // HTML // begin [file="/user_xian.jsp";from=(59,2);to=(63,0)]
                out.write("\r\n\r\n</body>\r\n</html>\r\n");

            // 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 + -