📄 upd_0002ejsp_jsp.java
字号:
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class upd_0002ejsp_jsp extends HttpJspBase {
static {
}
public upd_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=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/upd.jsp";from=(0,0);to=(2,0)]
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n\"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
// end
// HTML // begin [file="/upd.jsp";from=(2,51);to=(3,0)]
out.write("\r\n");
// end
// HTML // begin [file="/upd.jsp";from=(3,30);to=(4,0)]
out.write("\r\n");
// end
// HTML // begin [file="/upd.jsp";from=(4,32);to=(5,0)]
out.write("\r\n");
// end
// begin [file="/upd.jsp";from=(5,2);to=(5,41)]
request.setCharacterEncoding("gb2312");
// end
// HTML // begin [file="/upd.jsp";from=(5,43);to=(13,0)]
out.write("\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>修改个人信息</title>\r\n</head>\r\n<body>\r\n<form action=\"updatexx.jsp\" method=\"POST\" name=\"frmLogin\" >\r\n");
// end
// begin [file="/upd.jsp";from=(13,2);to=(44,0)]
String yhm=(String)session.getValue("yhm");
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
}catch(ClassNotFoundException e){
System.out.println(e.getMessage());
}
String sql="select * from xgxx where yhm='"+yhm+"'";
Connection cnCon = DriverManager.getConnection("jdbc:odbc:login"," "," ");
Statement stmt = cnCon.createStatement();
ResultSet rs = stmt.executeQuery(sql);
rs.next();
String xm=rs.getString("xm").trim();
String mm=rs.getString("mm").trim();
String xb=rs.getString("xb").trim();
String csny=rs.getString("csny").trim();
String mz=rs.getString("mz").trim();
String zzmm=rs.getString("zzmm").trim();
String xl=rs.getString("xl").trim();
String zy=rs.getString("zy").trim();
String bgdh=rs.getString("bgdh").trim();
String fjdh=rs.getString("fjdh").trim();
String jtdh=rs.getString("jtdh").trim();
String sj=rs.getString("sj").trim();
String jtdz=rs.getString("jtdz").trim();
String yzbm=rs.getString("yzbm").trim();
String qq=rs.getString("qq").trim();
String e=rs.getString("e").trim();
String yhm1=rs.getString("yhm").trim();
String grjj=rs.getString("grjj").trim();
// end
// HTML // begin [file="/upd.jsp";from=(44,2);to=(51,55)]
out.write("\r\n<table width=\"619\" height=\"437\" border=\"0\" align=\"center\">\r\n <tr bgcolor=\"#FF9900\">\r\n <td height=\"20\" colspan=\"4\"><span class=\"style3\">你的资料</span></td>\r\n </tr>\r\n <tr bgcolor=\"#99CCFF\">\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">姓名</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(51,58);to=(51,60)]
out.print(xm);
// end
// HTML // begin [file="/upd.jsp";from=(51,62);to=(53,55)]
out.write("</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">登录密码</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(53,58);to=(53,60)]
out.print(mm);
// end
// HTML // begin [file="/upd.jsp";from=(53,62);to=(57,55)]
out.write("</span></td>\r\n </tr>\r\n <tr bgcolor=\"#99CCFF\">\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">性别</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(57,58);to=(57,60)]
out.print(xb);
// end
// HTML // begin [file="/upd.jsp";from=(57,62);to=(59,55)]
out.write("</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">出生年月</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(59,58);to=(59,62)]
out.print(csny);
// end
// HTML // begin [file="/upd.jsp";from=(59,64);to=(63,55)]
out.write("</span></td>\r\n </tr>\r\n <tr bgcolor=\"#99CCFF\">\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">民族</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(63,58);to=(63,60)]
out.print(mz);
// end
// HTML // begin [file="/upd.jsp";from=(63,62);to=(65,55)]
out.write("</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">政治面貌</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(65,58);to=(65,62)]
out.print(zzmm);
// end
// HTML // begin [file="/upd.jsp";from=(65,64);to=(69,55)]
out.write("</span></td>\r\n </tr>\r\n <tr bgcolor=\"#99CCFF\">\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">学历</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(69,58);to=(69,60)]
out.print(xl);
// end
// HTML // begin [file="/upd.jsp";from=(69,62);to=(71,55)]
out.write("</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">职业</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(71,58);to=(71,60)]
out.print(zy);
// end
// HTML // begin [file="/upd.jsp";from=(71,62);to=(75,55)]
out.write("</span></td>\r\n </tr>\r\n <tr bgcolor=\"#99CCFF\">\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">办公电话</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(75,58);to=(75,62)]
out.print(bgdh);
// end
// HTML // begin [file="/upd.jsp";from=(75,64);to=(77,55)]
out.write("</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">分机电话</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(77,58);to=(77,62)]
out.print(fjdh);
// end
// HTML // begin [file="/upd.jsp";from=(77,64);to=(81,54)]
out.write("</span></td>\r\n </tr>\r\n <tr bgcolor=\"#99CCFF\">\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">家庭地址</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(81,57);to=(81,61)]
out.print(jtdh);
// end
// HTML // begin [file="/upd.jsp";from=(81,63);to=(83,55)]
out.write("</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">手机</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(83,58);to=(83,60)]
out.print(sj);
// end
// HTML // begin [file="/upd.jsp";from=(83,62);to=(87,55)]
out.write("</span></td>\r\n </tr>\r\n <tr bgcolor=\"#99CCFF\">\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">家庭地址</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(87,58);to=(87,62)]
out.print(jtdz);
// end
// HTML // begin [file="/upd.jsp";from=(87,64);to=(89,55)]
out.write("</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">邮政编码</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(89,58);to=(89,62)]
out.print(yzbm);
// end
// HTML // begin [file="/upd.jsp";from=(89,64);to=(93,55)]
out.write("</span></td>\r\n </tr>\r\n <tr bgcolor=\"#99CCFF\">\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">QQ</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(93,58);to=(93,60)]
out.print(qq);
// end
// HTML // begin [file="/upd.jsp";from=(93,62);to=(95,55)]
out.write("</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">E-mail:</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(95,58);to=(95,59)]
out.print(e);
// end
// HTML // begin [file="/upd.jsp";from=(95,61);to=(99,54)]
out.write("</span></td>\r\n </tr>\r\n <tr bgcolor=\"#99CCFF\">\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">用户名</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(99,57);to=(99,61)]
out.print(yhm1);
// end
// HTML // begin [file="/upd.jsp";from=(99,63);to=(103,55)]
out.write("</span></td>\r\n </tr>\r\n <tr bgcolor=\"#99CCFF\">\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">个人简介</span></td>\r\n <td width=\"150\" height=\"20\"><span class=\"style2\">");
// end
// begin [file="/upd.jsp";from=(103,58);to=(103,62)]
out.print(grjj);
// end
// HTML // begin [file="/upd.jsp";from=(103,64);to=(117,7)]
out.write("</span></td>\r\n </tr>\r\n</table>\r\n</div>\r\n<p>\r\n \r\n \r\n \r\n \r\n <input type=\"submit\" name=\"Submit\" value=\"提交\"> \r\n <input type=\"reset\" name=\"Submit2\" value=\"重置\">\r\n</p>\r\n</form>\r\n</body>\r\n</html>");
// 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 + -