login.jsp

来自「这个是用jsp编写的投票系统代码」· JSP 代码 · 共 41 行

JSP
41
字号
<%@page contentType="text/html;charset=gb2312"%><%--The taglib directive below imports the JSTL library. If you uncomment it,you must also add the JSTL library to the project. The Add Library... actionon Libraries node in Projects view can be used to add the JSTL 1.1 library.--%><%--<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> --%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"   "http://www.w3.org/TR/html4/loose.dtd"><html>    <head>              <title>管理员登录</title>    </head>    <body bgcolor="#FFCCFF"><center>    <h1>管理员登录</h1>    <form method="post" action="process">        <table border="1">            <tr><td>用户名:</td>            <td><input type="text" name="user"></td></tr>            <tr><td>密码:</td>            <td><input type="password" name="ps"></td></tr>            <tr><td><input type="submit" value="登录"><input type="reset" value="清空"></td></tr>        </table>            </form>    <%    String warning=(String)request.getAttribute("warning");    if(warning!=null){        //warning=new String(warning.getBytes("ISO-8859-1"));        out.println("<h3>"+warning+"<a href='index.jsp'>返回首页</a></h3>");    }    %>    </center>    </body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?