无法 登录

来源:3-6 get与post提交方式的区别

weibo_十甫寸o_04156761

2017-03-25 18:16

为什么登录不了?就是按“登录“按钮无法调到dologin.jsp的页面上

<%@ page language="java" contentType="text/html; charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<h1>用户登录</h1>
<form action="dologin.jsp" name="loginForm"  method="get"></form>
<table>
<tr>
<td>用户名:</td>
<td><input  type="text"  name="usename"/></td>
</tr>
<tr>
<td>密  码:</td>
<td><input  type="password"  name="password"/></td>
</tr>
<tr>
<td colspan="2"><input type = "submit" value = "登录"></td>
</tr>
</table>
</body>
</html>


写回答 关注

4回答

  • 过道
    2017-05-02 15:23:17

    正确的是

    <form>

    ……(各种语句)…………

    </form>

    你的是

    <form></form>

    ……(各种语句)…………

  • qq_顿首_0
    2017-03-25 20:55:48
    <form action="dologin.jsp" name="loginForm"  method="get">
    <table>
    <tr>
    <td>用户名:</td>
    <td><input  type="text"  name="usename"/></td>
    </tr>
    <tr>
    <td>密  码:</td>
    <td><input  type="password"  name="password"/></td>
    </tr>
    <tr>
    <td colspan="2"><input type = "submit" value = "登录"></td>
    </tr>
    </table>
    </form>

    因该这个样子的呢

  • 丹布朗
    2017-03-25 20:43:44

    form标签

  • 慕少9694621
    2017-03-25 18:30:48

    你的form没有吧tablei整体包起来

JAVA遇见HTML——JSP篇

Java Web入门级教程JSP,带你轻松的学习JSP基础知识

248274 学习 · 3215 问题

查看课程

相似问题