1.Html制作简单而漂亮的登登录登录页面
2.求jsp登录源码 急急急急急急急急急急急
3.九款好看的后台管理系统登录模板
Html制作简单而漂亮的登录页面
本文详细阐述了如何使用Html技术制作一个既简单又美观的登录页面,并提供了实用的录页代码示例。
首先,面源码好让我们先睹为快。页面源码网页视频插件源码
以下是登登录Html源码和CSS代码,请复制到您的录页私服游戏源码下载剪贴板。
总结:
具体代码如下所示:
placeholder="用户名"功能:作为占位符使用。面源码好
以上便是页面源码本篇文章的全部内容,希望对您的登登录学习之路有所帮助。
求jsp登录源码 急急急急急急急急急急急
登陆页面 index.jsp源码:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>login</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,录页keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<form action="LoginServlet" method="post">
用户名:<input type="text" name="username" ><br>
密码:<input type="password" name="userpass"><br>
<input type="submit" value="登陆"> <input type="reset" value="取消">
</form>
</body>
</html>
-------------
LoginServlet.java 源码:
package servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class LoginServlet extends HttpServlet {
/
*** Constructor of the object.
*/
public LoginServlet() {
super();
}
/
*** Destruction of the servlet. <br>
*/
public void destroy() {
super.destroy(); // Just puts "destroy" string in log
// Put your code here
}
/
*** The doGet method of the servlet. <br>
*
* This method is called when a form has its tag value method equals to get.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
//获得jsp页面传输的参数
String username=request.getParameter("username");
String userpass=request.getParameter("userpass");
//判断
if(username.equals("user")&&userpass.equals("")){
response.sendRedirect("1.jsp");
}else if(username.equals("admin")&&userpass.equals("")){
response.sendRedirect("2.jsp");
}else{
response.sendRedirect("index.jsp");
}
}
/
*** The doPost method of the servlet. <br>
*
* This method is called when a form has its tag value method equals to post.
*
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
*/
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doGet(request, response);
}
/
*** Initialization of the servlet. <br>
*
* @throws ServletException if an error occurs
*/
public void init() throws ServletException {
// Put your code here
}
}
-------------
1.jsp:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP '1.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
This is 1.jsp <br>
</body>
</html>
-------------
2.jsp
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP '1.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
This is 2.jsp <br>
</body>
</html>
九款好看的后台管理系统登录模板
欢迎观赏九款精心设计的后台管理系统登录模板,它们不仅美观,面源码好而且实用,页面源码适合直接融入项目中。登登录语音识别java源码欲获取源代码,录页可加入下方指定群组,面源码好免费领取。整形咨询平台源码
亲测可用,无任何广告干扰。
1. HTML5全屏下雪背景动画登录注册页面模板
2. 精致的日内交易模型源码登录注册忘记密码切换界面模板
3. 蓝色大气养殖企业内部管理系统后台登录页面模板
4. 基于Layui蓝色全屏粒子线条动画背景后台登录界面模板
5. 蓝色大气app软件后台管理员登录页面模板
6. 蓝色大气移动推广平台登录界面模板
7. HTML5炫酷线条背景动画后台登录界面模板
8. HTML5全屏酷炫星空闪烁背景动画后台登录界面模板
9. 简洁好看的网站后台登录界面静态模板
欲获取上述源代码,请加入指定群组,下载地址在群公告。
捨退休俸勇敢追夢 羊毛氈創作擬真麵包
控蔡英文論文造假被反告毀謗名譽,彭文正二度向檢察官求償200萬元被駁回
德國發生持刀襲擊事件 已致3人死亡4人重傷
世衞組織:蘇丹洪災致多種傳染病加速蔓延
翻轉新台味 鹿港青年的麵茶想像
俄緊急情況部:超1萬名庫爾斯克州平民已被轉移至臨時安置點