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

📄 updateinfo_jsp.java

📁 一个简单的银行管理系统
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;

public final class UpdateInfo_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  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;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\n');
      out.write('\n');
      out.write('\n');
      out.write('\n');
      out.write("\n");
      out.write("\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n");
      out.write("   \"http://www.w3.org/TR/html4/loose.dtd\">\n");
      out.write("\n");
      out.write("<html>\n");
      out.write("    <head>\n");
      out.write("        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
      out.write("        <title>网上银行</title>\n");
      out.write("    </head>\n");
      out.write("    <body background=\"D:/YJ/YJ1.23/NetBank/background/onpub07.gif\">\n");
      out.write("    ");
        String userName = (String)session.getAttribute("userName");        String userPassword = request.getParameter("userPassword");        String reUserPassword=request.getParameter("rePassword");        String servicePassword = request.getParameter("servicePassword");        String reServicePassword=request.getParameter("reServicePassword");        String address = request.getParameter("address");        String phone = request.getParameter("phone");        String mobile = request.getParameter("mobile");        String email = request.getParameter("email");        if(!userPassword.equals(reUserPassword))        {            out.println("两次输入的登陆密码不一致,请重新输入");   
      out.write("\n");
      out.write("      <p align = \"center\">\n");
      out.write("        <a href = \"Show.html\">修改成功</a>\n");
      out.write("   ");
              }        else if(!servicePassword.equals(reServicePassword))        {            out.println("两次输入的服务密码不一致,请重新输入");    
      out.write("\n");
      out.write("      <p align = \"center\">\n");
      out.write("            系统将在3秒内自动跳转,也可以点击下面的链接回到修改界面\n");
      out.write("        <meta http-equiv=\"refresh\" content=\"2; URL=AlterInfo.jsp\">\n");
      out.write("        <a href = \"AlterInfo.jsp\">回到修改界面</a>\n");
      out.write("    ");
          }        else        {            String dbUrl = "jdbc:odbc:afei";            String user = "scott";            String password = "tiger";            try            {                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");                Connection conn = DriverManager.getConnection(dbUrl,user,password);                CallableStatement proc = conn.prepareCall("{ call UpdateNetMember(?,?,?,?,?,?,?) }");                proc.setString(1, userName);                proc.setString(2, userPassword);                 proc.setString(3,servicePassword);                proc.setString(4,address);                proc.setString(5,phone);                proc.setString(6, mobile);                proc.setString(7, email);                 proc.execute();                proc.close();                conn.close();   
      out.write("\n");
      out.write("            <p align = \"center\">\n");
      out.write("                祝贺您修改成功\n");
      out.write("            <p align = \"center\">\n");
      out.write("                系统将在3秒内自动跳转,也可以点击下面的链接回到主界面\n");
      out.write("            <meta http-equiv=\"refresh\" content=\"2; URL=Show.html\">\n");
      out.write("            <a href = \"Show.html\">回到主界面</a>\n");
      out.write("   ");
             }                catch(Exception connectException)            {                out.println(connectException);                out.println("连接数据库失败,请联系管理员!");            }        }    
      out.write("\n");
      out.write("    \n");
      out.write("    \n");
      out.write("    </body>\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

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