1.jsp登陆界面源代码
2.基于web的文章p文JSP网上购物系统源代码
3.JSP ä¸ä¼ ä¸è½½ä»£ç
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、系统转账授权USDT源码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、源码usdt免授权源码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:文件
统源element表单校验源码<%@ page language="java" contentType="text/html; charset=utf-8"
统源element表单校验源码pageEncoding="utf-8"%>
统源element表单校验源码<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4. Transitional//EN" ".jci.upload.servlet;
统源element表单校验源码import java.io.File;
统源element表单校验源码import java.io.FileOutputStream;
统源element表单校验源码import java.io.IOException;
统源element表单校验源码import java.io.InputStream;
统源element表单校验源码import java.io.OutputStream;
统源element表单校验源码import java.util.List;
统源element表单校验源码import javax.servlet.ServletException;
统源element表单校验源码import javax.servlet..jci.upload.servlet.UploadServlet</servlet-class>
统源element表单校验源码</servlet>
统源element表单校验源码<servlet-mapping>
统源element表单校验源码<servlet-name>UploadServlet</servlet-name>
统源element表单校验源码<url-pattern>/UploadServlet</url-pattern>
统源element表单校验源码</servlet-mapping>
统源element表单校验源码<welcome-file-list>
统源element表单校验源码<welcome-file>index.jsp</welcome-file>
统源element表单校验源码</welcome-file-list>
统源element表单校验源码</web-app>
统源element表单校验源码5.åå¸
统源element表单校验源码okäº
统源element表单校验源码è¿æ¯æåå§çä¸ä¼ æ件çåæ³ï¼ç°å¨struts2ä¸ä¼ çè¯ï¼å°±è¦è½»æ¾å¥½å¤
统源element表单校验源码聊天代理分销系统源码下载_聊天代理平台
智能电表小程序源码_智能电表小程序源码是什么
雀巢溯源码查询真假_雀巢溯源码查询真假怎么查
网站源码 包括前后台_网站源码是什么
高低点自动划线指标源码_高低点自动划线公式指标源码
超级账本源码分析_超级账本源码分析工具