This article is a mirror article of machine translation, please click here to jump to the original article.

View: 16207|Reply: 3

[JavaEE] Source code for a jsp login page jump (connect to the database)

[Copy link]
Posted on 12/5/2014 9:31:44 PM | | | |





[mw_shl_code=java,true] <%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
   
    <title>My JSP 'index.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">
        -->
        <style type="text/css" >
        #xu { border: dashed 1px #333}
        </style>
  </head>
  
  <body>
    <div>
    <form action="login.jsp" method="post">
            <table align="center">
                    <tr>
                                <td id="xu" align="center"> Welcome to log in</td>
                    </tr>
                    <tr>
                                <td id="xu"> account:<input type="text" name="id" style="width: 100px; height: 20px;"/></td>
                    </tr>
                    <tr>
                                <td id="xu"> password: <input type="password" name="pwd" style="width: 100px; height: 20px;"/></td>
                    </tr>
                    <tr>
                                <td id="xu" align="center"><input type="submit" value="OK"/></td>
                    </tr>
            </table>
    </form>
    </div>
  </body>
</html>
[/mw_shl_code]

Source code download: itsvse.zip (298.58 KB, Number of downloads: 1, Selling price: 1 Grain MB)





Previous:2014 mama Asian Music Festival Andy Lau was ignored by EXO
Next:Sina Weibo scan the code to pay 1 cent to receive the year-end bonus up to 2015 yuan
Posted on 12/6/2014 11:37:36 AM |
Although it is only preliminary, it is necessary to clarify the development mode of MVC.
 Landlord| Posted on 12/6/2014 11:48:25 AM |
microxdd posted on 2014-12-6 11:37
Although it is only preliminary, it is necessary to clarify the development mode of MVC.

What is the development mode of MVC, our teacher has not said
Posted on 12/6/2014 4:34:47 PM |
admin posted on 2014-12-6 11:48
What is the development mode of MVC, our teacher has not said

Code hierarchy m model v view layer c controller control layer
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com