checkcode.jsp

来自「运输模块代码」· JSP 代码 · 共 29 行

JSP
29
字号
<%--
  Created by IntelliJ IDEA.
  User: jtgao
  Date: 2006-5-18
  Time: 12:04:18
  To change this template use File | Settings | File Templates.//
  根据传入参数,检查是否在数据库中存在记录
--%>
<%@page contentType="text/html;charset=GBK"%>
<%@ include file="/IncludeBeginMD.jsp"%>
<%
	boolean isEmpty = true;
	String sAccount = DataConvert.toRealString(iPostChange,request.getParameter("Account"));
    String sSubacct = DataConvert.toRealString(iPostChange,request.getParameter("Subacct"));
          sSubacct=sSubacct.trim() ;
     try{
        ASResultSet rs = Sqlca.getASResultSet("select account,subacct from customer where account = '"+sAccount +"' and subacct = '" + sSubacct +"'" );
    isEmpty = !rs.next();
    } catch (Exception e){
        e.printStackTrace();

    }
                out.print("&&&&&&&&&&&&&&");
%>
<script language=javascript>
	self.returnValue = "<%=isEmpty%>";
	self.close();
</script>
<%@ include file="/IncludeEnd.jsp"%>

⌨️ 快捷键说明

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