å¦çCè¯è¨ç¼ç¨å¦ä¹ å¿ å¤çä¸äºç½ç«
Cè¯è¨å¸¸ç¨å¦ä¹ ç½ç«1ãCè¯è¨ç½
Cè¯è¨ç½(www.dotcpp.com)ä¸ä» æä¾Cè¯è¨ï¼è¿å æ¬C++ãjavaãç®æ³ä¸æ°æ®ç»æç课ç¨å¨å çåç§å ¥é¨æç¨ãè§é¢å½åãç¼ç¨ç»éªãç¼è¯å¨æç¨å软件ä¸è½½ãé¢è§£å客ï¼æºç å享çä¼è´¨èµæºï¼æå¡è¾¹å¦è¾¹ç»è¾¹å享ï¼åæ¶æä¾å¯¹å£çITå·¥ä½ï¼æ¯å½å é¢å å®ç¨ç综åæ§ç¼ç¨å¦ä¹ ç½ç«!
2ãCè¯è¨ä¸æç½
Cè¯è¨ä¸æç½æ¯ä¸å½é¢å çCè¯è¨ç¨åºè®¾è®¡ä¸ä¸ç½ç«ï¼æä¾Cè¯è¨å ¥é¨ç»å ¸æç¨ãCè¯è¨ç¼è¯å¨ãCè¯è¨å½æ°æåï¼Cè¯è¨ç¼ç¨æå·§ï¼Cè¯è¨èè¯è¯é¢çæ¯å¦ä¹ ãèªå¦Cè¯è¨ç¨åºè®¾è®¡ç好帮æ
3ãèé¸æç¨
æ¬ç½ç«æä¾äºä¸äºCè¯è¨çæç¨åCçæ ååºï¼éå使ç¨Cè¯è¨ç¼ç¨çç¨åºåã
4ãå¾çµç¤¾åº
æä¾äºä¸äºæå ³Cè¯è¨çå¾ä¹¦ï¼ä¹å¯ä»¥å¨æ¤ç¤¾åºå¯»æ¾å ¶ä»ç¼ç¨ç±»å¾ä¹¦
5ãæçå¼å¸¸ç½
æçå¼å¸¸ç½ä¹Cè¯è¨æ ç®æä¾æå¨çCè¯è¨ç¸å ³çBUGãå¼å¸¸ãé误é®é¢è§£å³æ¹æ¡ï¼ä¹æå ¶ä»ç¼ç¨å¸¸è§çå¼å¸¸ï¼æ¨è解å³ç¨åºä¸å¼å¸¸ä½¿ç¨æ¤ç½ç«
6ãBCCNä¸è½½é¢é
æ¬ç½ç«æä¾äºä¸äºCè¯è¨å¼åå·¥å ·ï¼çµå书ï¼èµæçç¸å ³æç¨ã
7ãç«é¿ä¹å®¶
æä¾äºCè¯è¨çèµè®¯ççç
8 ãfenby
ä¸ä¸é¢ååå¦è çå¨çº¿äºå¨ç¼ç¨å¦ä¹ å¹³å°
jsp登陆界面源代码
1、源码login.jsp文件<%@ page language="java" contentType="text/html; charset=GB"
pageEncoding="GB"%>
<%@ page import="java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. Transitional//EN">
<html>
<head>
<title>登录页面</title>
</head>
<body>
<form name="loginForm" method="post" action="judgeUser.jsp">
<table>
<tr>
<td>用户名:<input type="text" name="userName" id="userName"></td>
</tr>
<tr>
<td>密码:<input type="password" name="password" id="password"></td>
</tr>
<tr>
<td><input type="submit" value="登录" style="background-color:pink"> <input
type="reset" value="重置" style="background-color:red"></td>
</tr>
</table>
</form>
</body>
</html>
2、源码judge.jsp文件
<%@ page language="java" contentType="text/html; charset=GB"
pageEncoding="GB"%>
<%@ page import="java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. Transitional//EN">
<html>
<head>
<title>身份验证</title>
</head>
<body>
<%
request.setCharacterEncoding("GB");
String name = request.getParameter("userName");
String password = request.getParameter("password");
if(name.equals("abc")&& password.equals("")) {
3、源码bitarray 源码afterLogin.jsp文件
%>
<jsp:forward page="afterLogin.jsp">
<jsp:param name="userName" value="<%=name%>"/>
</jsp:forward>
<%
}
else {
%>
<jsp:forward page="login.jsp"/>
<%
}
%>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=GB"
pageEncoding="GB"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. Transitional//EN">
<html>
<head>
<title>登录成功</title>
</head>
<body>
<%
request.setCharacterEncoding("GB");
String name = request.getParameter("userName");
out.println("欢迎你:" + name);
%>
</body>
</html>
扩展资料:
1、源码Data_uil.java文件
import java.sql.*;
public class Data_uil
{
public Connection getConnection()
{
try{
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
}catch(ClassNotFoundException e)
{
e.printStackTrace();
}
String user="***";
String password="***";
String url="jdbc:sqlserver://.0.0.1:;DatabaseName=***";
Connection con=null;
try{
con=DriverManager.getConnection(url,源码牛牛源码带教程user,password);
}catch(SQLException e)
{
e.printStackTrace();
}
return con;
}
public String selectPassword(String username)
{
Connection connection=getConnection();
String sql="select *from login where username=?";
PreparedStatement preparedStatement=null;
ResultSet result=null;
String password=null;
try{
preparedStatement=connection.prepareStatement(sql);
preparedStatement.setString(1,username);
result=preparedStatement.executeQuery();//可执行的 查询
if(result.next())
password=result.getString("password");
}catch(SQLException e){
e.printStackTrace();
}finally
{
close(preparedStatement);
close(result);
close(connection);
}
System.out.println("找到的数据库密码为:"+password);
return password;
}
public void close (Connection con)
{
try{
if(con!=null)
{
con.close();
}
}catch(SQLException e)
{
e.printStackTrace();
}
}
public void close (PreparedStatement preparedStatement)
{
try{
if(preparedStatement!=null)
{
preparedStatement.close();
}
}catch(SQLException e)
{
e.printStackTrace();
}
}
public void close(ResultSet resultSet)
{
try{
if(resultSet!=null)
{
resultSet.close();
}
}catch(SQLException e)
{
e.printStackTrace();
}
}
}
2、login_check.jsp:文件
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4. Transitional//EN" "/,源码html精美界面源码开源地址:gitee.com/software-mini...
JVS-rules的源码迭代优化展示了其在规则引擎领域的持续进步,致力于为企业提供更完善、源码高效的源码解决方案。关注我们,源码了解更多产品信息与操作介绍。源码
规则引擎往期干货:
了解决策流的源码自定义权限控制
掌握JVS-rules 2.1.8版本新功能
深度解读JVS-rules规则引擎功能
探索更多JVS-rules规则引擎功能应用
学习JVS-rules规则引擎的全面功能
2024-12-22 22:23
2024-12-22 22:13
2024-12-22 21:16
2024-12-22 21:14
2024-12-22 20:43