【校园服务系统源码】【知道付费源码】【docker挂载源码】登陆页面源码_登陆页面源码是什么

2024-11-21 00:37:33 来源:thinkphp 客户源码 分类:知识

1.求一个:最简单的登陆登陆asp登陆界面代码
2.求jsp登录源码 急急急急急急急急急急急

登陆页面源码_登陆页面源码是什么

求一个:最简单的asp登陆界面代码

       <form id="form1" name="form1">

       用户名:<input type="text" id="UserName" name="UserName">

       密 码:<input type="password" id="PassWord" name="PassWord">

       <input type="button" value="提交" onclick="javascript:if

       (document.all.UserName.value!='suchen' && document.all.PassWord.value!

       ='suchen'){ alert('用户名或密码有误!')}else

       { location.href='/ken_fly';}">

       </form>

       因为你没有数据库的,所以其实用这个就行了,页面源码页面源码不用那么麻烦,登陆登陆校园服务系统源码

       把“suchen"和那个/ken_fly改为你想要的页面源码页面源码就行。

       呵呵。登陆登陆知道付费源码把它复制到别的页面源码页面源码docker挂载源码地方比较看得清。这里这个宽度太小,登陆登陆不好看!页面源码页面源码

       设计的登陆登陆话,要你自己根据你的页面源码页面源码页面设计,在这里我就帮不了你了,登陆登陆只能给你源码。页面源码页面源码呵呵!

求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,登陆登陆html底色源码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>

更多资讯请点击:知识

热门资讯

扫码付源码

2024-11-21 00:21536人浏览

b2b 源码

2024-11-20 22:492658人浏览

租车源码_租车源码 php

2024-11-20 22:111340人浏览

php聊天室源码_php聊天室源码下载

2024-11-20 22:062828人浏览

推荐资讯

易语言 发帖源码_易语言源码分享论坛网站

1.?????? ????Դ???????? ????Դ?? 易语言是一种面向中文用户的编程语言,具有易于学习和使用的特点。同时,关于易语言,还有易语言论坛、易语言源码和易语言网站等相关概念。

收费系统源码_收费系统源码有什么用

1.蚂蚁知识付费系统源码AntPayCMS)2.2023最新彩虹易支付搭建系统网站源码免签约3.易语言充值收费系统)源码怎么用?4.神州码源码是什么5.最新源支付系统源码 V7版全开源 免授权 附搭建

app源码论坛

1.如何看到一个APP应用的源代码2.成品网站W灬源码入口APP入口重新开放-成品网站W灬源码入口APP访客瞬间涌入!3.php宝塔搭建部署小程序h5圈子论坛uniapp源码4.如何查找安卓app源码