【java集合源码大全】【易语言ico制作源码】【apr下载源码安装apache】登录源码分享_登录源码分享怎么弄

2024-12-23 07:51:57 来源:刀剑神域源码记录下载 分类:热点

1.求jsp登录源码 急急急急急急急急急急急
2.Android登录界面源代码delphi xe10

登录源码分享_登录源码分享怎么弄

求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,登录登录java集合源码大全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>

Android登录界面源代码delphi xe

       [示例介绍]

       [示例屏幕截图] #8:8:f:8:2:9delphi xe android:2:9:8:8:8:d:d:1:d:c:1:c:e:1:1:2:9:7:8:7:5delphi xe android:4:4:5:5:5#

       [核心代码]过程Tfmbody.InitFrame();

       开始

       { fmapp: = Tfmapp.Create(自己);

       fmapp.Parent: = TabItem1;

       fmapp.Align: = TAlignLayout.Client;

       fmmsg: = Tfmmsg.Create(自己);

       fmmsg.Parent: = TabItem2;

       fmmsg.Align: = TAlignLayout.Client;

       fmtel: = Tfmtel.Create(自己);

       fmtel.Parent: = TabItem3;

       fmtel.Align: = TAlignLayout.Client;

       fmsetting: = Tfmsetting.Create(自己);

       fmsetting.Parent: = TabItem4;

       fmsetting.Align: = TAlignLayout.Client;}

       end;

       过程Tfmbody.UnInitFrame();

       开始

       { fmapp.DisposeOf;

       fmmsg.DisposeOf;

       fmtel.DisposeOf;

       fmsetting.DisposeOf;}

       end;

       结束.

更多资讯请点击:热点

热门资讯

小说源码推广

2024-12-23 07:052110人浏览

照片数源码_照片源代码

2024-12-23 06:34112人浏览

androlua绘图源码_andlua绘制源码

2024-12-23 05:171982人浏览

推荐资讯

睡到一半被腳抽筋痛醒! 醫曝「睡前4件事」不可少

大家都有過這樣的經驗吧,就是半夜突然痛醒,發現是腿或腳抽筋,痛到翻來覆去好久才能舒緩!半夜抽筋痛醒教4招一夜好眠雖然腳抽筋不是什麼嚴重的問題,但痛起來也真的是要人命,復健診所王竣平主治醫師就來教幾招,

天龙引擎源码_天龙八部引擎

1.东风天龙前四后八雷诺350发动机配3.9的速比怎么样2.天龙八部服务端要用什么引擎3.东风天龙发动机声音大是什么原因4.天龙八部手游 天龙八部人工在线客服怎么联系?5.天龙八部手游 天龙八部网游怎

影视源码网址

1.谁有免费的电影网站源代码?2.苹果CMS影视网站海螺模版安装教程3.推荐多个超实用网站4.成品网站W灬源码火龙果-成品网站W灬源码火龙果地址介绍5.野荷塘网站源码,野荷塘网站模板哪里可以买到6.2