1.jsp登陆界面源代码
2.FontPage和Dreamweaver各自的源码优缺点
3.如何 自己制作一个自己的网页呀
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、源码业主源码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、源码源码 rpmData_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" "/pcedu/sj/wz/dreamweaver//.html
源码源码菠菜2024-11-19 08:272417人浏览
2024-11-19 08:161380人浏览
2024-11-19 07:47813人浏览
2024-11-19 07:272196人浏览
2024-11-19 06:471676人浏览
2024-11-19 06:35369人浏览
1.哪位大神帮个忙c++)?2.åç ï¼åç ï¼è¡¥ç ï¼ç§»ç 3.写出下列的其他进制:32=0 =0x.75=0 =0x 分别求出26和-26的原码,反码和补码4.
昨日,重点项目泉州大桥扩改工程施工现场机器轰鸣,工人紧张有序地忙碌,呈现出如火如荼的施工热潮。记者从泉州市交通运输局获悉,截至4月17日,泉州大桥拓宽改造工程、泉州环湾快速路石狮连接线工程二期)、安溪
中国消费者报南京讯(史晔 记者薛庆元)金秋菊黄蟹正肥,作为鱼米之乡,江苏各地市螃蟹进入销售旺季。网购螃蟹存在哪些消费陷阱,怎么避免被坑呢?10月23上午,江苏省消费者权益保护委员会召开2020年网购大