📄 _consumerinfoupdate.java
字号:
/*@lineinfo:filename=/ConsumerInfoUpdate.jsp*/
/*@lineinfo:generated-code*/
import oracle.jsp.runtime.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.Vector;
import java.sql.*;
import Flower.model.DBConnect;
import Flower.model.Consumerlogin;
public class _ConsumerInfoUpdate extends com.orionserver.http.OrionHttpJspPage {
public final String _globalsClassName = null;
// ** Begin Declarations
// ** End Declarations
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {
response.setContentType( "text/html;charset=gb2312");
/* set up the intrinsic variables using the pageContext goober:
** session = HttpSession
** application = ServletContext
** out = JspWriter
** page = this
** config = ServletConfig
** all session/app beans declared in globals.jsa
*/
PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
// Note: this is not emitted if the session directive == false
HttpSession session = pageContext.getSession();
if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);
JspFactory.getDefaultFactory().releasePageContext(pageContext);
return;
}
int __jsp_tag_starteval;
ServletContext application = pageContext.getServletContext();
JspWriter out = pageContext.getOut();
_ConsumerInfoUpdate page = this;
ServletConfig config = pageContext.getServletConfig();
try {
// global beans
// end global beans
out.write(__oracle_jsp_text[0]);
out.write(__oracle_jsp_text[1]);
out.write(__oracle_jsp_text[2]);
/*@lineinfo:user-code*//*@lineinfo:225^19*/ Connection con=null; PreparedStatement pstmt=null; ResultSet rs=null; con=DBConnect.getConnection(); pstmt=con.prepareStatement("select * from ConsumerLogin where ConsumerID=?"); pstmt.setString(1,session.getAttribute("identity").toString()); rs=pstmt.executeQuery(); while(rs.next()) {
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[3]);
/*@lineinfo:user-code*//*@lineinfo:240^98*/ out.print(rs.getString(2));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[4]);
/*@lineinfo:user-code*//*@lineinfo:248^71*/ out.print(rs.getString(3));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[5]);
/*@lineinfo:user-code*//*@lineinfo:268^21*/ } rs.close(); pstmt.close(); con.close();
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[6]);
/*@lineinfo:user-code*//*@lineinfo:274^21*/ Connection con1=null; PreparedStatement pstmt1=null; ResultSet rs1=null; con1=DBConnect.getConnection(); // pstmt1=con1.prepareStatement("select * from ConsumerInfo where ConsumerId=?"); pstmt1=con1.prepareStatement("select * from ConsumerInfo where ConsumerId=?"); pstmt1.setString(1,session.getAttribute("identity").toString()); rs1=pstmt1.executeQuery(); while(rs1.next()) {
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[7]);
/*@lineinfo:user-code*//*@lineinfo:292^77*/ out.print(rs1.getString(1));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[8]);
/*@lineinfo:user-code*//*@lineinfo:300^98*/ out.print(rs1.getString(2));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[9]);
/*@lineinfo:user-code*//*@lineinfo:307^23*/ if(rs1.getString(3).equals("男")) {
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[10]);
/*@lineinfo:user-code*//*@lineinfo:311^64*/ out.print(rs1.getString(3));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[11]);
/*@lineinfo:user-code*//*@lineinfo:311^87*/ out.print(rs1.getString(3));
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[12]);
/*@lineinfo:user-code*//*@lineinfo:313^27*/ } else {
/*@lineinfo:generated-code*/
out.write(__oracle_jsp_text[13]);
/*@lineinfo:user-code*//*@lineinfo:320^27*/ }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -