📄 alterinfo_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
public final class AlterInfo_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/0003.gif\">\n");
out.write(" ");
String loginID = (String)session.getAttribute("userName"); String accountID = ""; String addr = ""; String phone = ""; String mobilePhone = ""; String email = ""; String IDcard = ""; 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); String sql = "Select netMember.accountID,addr,phone,mobilePhone,email,IDcard from netMember,deAccount where netMember.accountID = deAccount.accountID and loginID = '"+loginID+"'"; Statement stat = conn.createStatement(); ResultSet result = stat.executeQuery(sql); if(result.next()) { accountID = result.getString("accountID"); addr = result.getString("addr"); phone = result.getString("phone"); mobilePhone = result.getString("mobilePhone"); email = result.getString("email"); IDcard = result.getString("IDcard"); } conn.close(); } catch(Exception connectException) { out.println(connectException); out.println("连接数据库失败! 请与管理员联系!"); }
out.write("\n");
out.write(" <form name=\"alter\" action=\"UpdateInfo.jsp\" method=\"POST\">\n");
out.write(" <p align=\"center\">\n");
out.write(" <font face=\"隶书\" color=\"blue\" size=3>修改资料</font>\n");
out.write(" <p align=\"center\">\n");
out.write(" <font face=\"隶书\" color=\"blue\" size=3>用户名称</font>\n");
out.write(" <input type=\"text\" name=\"userName\" value=");
out.print(loginID);
out.write(" disabled/>\n");
out.write(" <p align=\"center\">\n");
out.write(" <font face=\"隶书\" color=\"blue\" size=3>登陆密码</font>\n");
out.write(" <input type=\"password\" name=\"userPassword\" value=\"\" />\n");
out.write(" <p align=\"center\">\n");
out.write(" <font face=\"隶书\" color=\"blue\" size=3>重复密码</font>\n");
out.write(" <input type=\"password\" name=\"rePassword\" value=\"\" />\n");
out.write(" <p align=\"center\">\n");
out.write(" <font face=\"隶书\" color=\"blue\" size=3>服务密码</font>\n");
out.write(" <input type=\"password\" name=\"servicePassword\" value=\"\" />\n");
out.write(" <p align=\"center\">\n");
out.write(" <font face=\"隶书\" color=\"blue\" size=3>重复密码</font>\n");
out.write(" <input type=\"password\" name=\"reServicePassword\" value=\"\" />\n");
out.write(" <p align=\"center\">\n");
out.write(" <font face=\"隶书\" color=\"blue\" size=3>关联帐号</font>\n");
out.write(" <input type=\"text\" name=\"accountID\" value=");
out.print(accountID);
out.write(" disabled/>\n");
out.write(" <p align=\"center\">\n");
out.write(" <font face=\"隶书\" color=\"blue\" size=3>身份证号</font>\n");
out.write(" <input type=\"text\" name=\"ID\" value=");
out.print(IDcard);
out.write(" disabled/>\n");
out.write(" <p align=\"center\">\n");
out.write(" <font face=\"隶书\" color=\"blue\" size=3>家庭住址</font>\n");
out.write(" <input type=\"text\" name=\"address\" value=");
out.print(addr);
out.write(" />\n");
out.write(" <p align=\"center\">\n");
out.write(" <font face=\"隶书\" color=\"blue\" size=3>固定电话</font>\n");
out.write(" <input type=\"text\" name=\"phone\" value=");
out.print(phone);
out.write(" />\n");
out.write(" <p align=\"center\">\n");
out.write(" <font face=\"隶书\" color=\"blue\" size=3>移动电话</font>\n");
out.write(" <input type=\"text\" name=\"mobile\" value=");
out.print(mobilePhone);
out.write(" />\n");
out.write(" <p align=\"center\">\n");
out.write(" <font face=\"隶书\" color=\"blue\" size=3>电子邮箱</font>\n");
out.write(" <input type=\"text\" name=\"email\" value=");
out.print(email);
out.write(" />\n");
out.write(" <p align=\"center\">\n");
out.write(" <input type=\"submit\" value=\"提交\" name=\"commit\" />\n");
out.write(" <input type=\"reset\" value=\"重置\" name=\"reset\" />\n");
out.write(" </form>\n");
out.write(" </body>\n");
out.write("</html>\n");
} 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 + -