第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

登錄頁面不發(fā)生跳轉(zhuǎn)

老師,為什么我的點(diǎn)擊登錄頁面不發(fā)生跳轉(zhuǎn)啊?沒有任何反應(yīng),也沒有報(bào)錯(cuò)。

正在回答

3 回答

?<from action="dologin.jsp" name="loginForm" method="get">

是form,不是from

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

代碼俠 提問者

非常感謝!調(diào)試成功了,細(xì)節(jié)很重要啊。
2015-03-20 回復(fù) 有任何疑惑可以回復(fù)我~

我用的是myEclipse for Spring 2014

login.jsp的代碼:

<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>

<%

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 'Login.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>

? ? <h1>用戶登錄</h1>

? ? <hr>

? ? <from action="dologin.jsp" name="loginForm" method="get">

? ? <table>

? ? <tr>

? ? <td>用戶名:</td>

? ? <td><input type="text" name="dologin.jsp"/></td>

? ? </tr>

? ? <tr>

? ? <td>密碼:</td>

? ? <td><input type="password" name="passward"/></td>

? ? </tr>

? ? <tr>

? ? <td colsopan="2"><input type="submit" value="登錄"/></td>

? ? </tr>

? ? </table>

? ? </from>

? </body>

</html>



這是web.xml的內(nèi)容:

<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">

? <display-name>JspLogin</display-name>

? <welcome-file-list>

? ? <welcome-file>index.html</welcome-file>

? ? <welcome-file>index.htm</welcome-file>

? ? <welcome-file>index.jsp</welcome-file>

? ? <welcome-file>default.html</welcome-file>

? ? <welcome-file>default.htm</welcome-file>

? ? <welcome-file>default.jsp</welcome-file>

? </welcome-file-list>

</web-app>



0 回復(fù) 有任何疑惑可以回復(fù)我~

貼一下你的代碼吧

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
JAVA遇見HTML——JSP篇
  • 參與學(xué)習(xí)       248277    人
  • 解答問題       3198    個(gè)

Java Web入門級(jí)教程JSP,帶你輕松的學(xué)習(xí)JSP基礎(chǔ)知識(shí)

進(jìn)入課程

登錄頁面不發(fā)生跳轉(zhuǎn)

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)