【JSP开源代码栏目提醒】:网学会员,鉴于大家对JSP开源代码十分关注,论文会员在此为大家搜集整理了“found_config.jsp”一文,供大家参考学习!
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*"%>
<jsp:useBean id="condata" scope="page" class="wuliu.conndata"/>
<% request.setCharacterEncoding("gb2312"); %>
<html>
<head>
<title>找回密码</title>
</head>
<jsp:include page="/top.jsp"/>
<body>
<%
try
{
String username=request.getParameter("username");
String email=request.getParameter("email");
String question=request.getParameter("question");
String result=request.getParameter("result");
String sql="select * from db_Customer where Name='"+username+"' and Email='"+email+"' and Question='"+question+"' and Result='"+result+"'";
ResultSet rs=condata.executeQuery(sql);
String password="";
String pass="你的密码是:";
if(rs.next()){
password=rs.getString("password");
%>
<center><h2>
请注意保留您的密码!!
<br>
您的密码是:<%=password%>
</h2>
</center>
<%
}else{
%>
<script language='javaScript'>
alert('你输入信息有误');history.back();
</script>
<%
}
}catch(Exception e)
{System.out.println("存在异常!!!");}
%>
</body>
</html>
上一篇:
found.jsp
下一篇:
让我掉下眼泪的