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

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

為什么一直跳轉(zhuǎn)登陸失敗啊,

<%@ 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.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>

? ? <div>

? <form action="dologin.jsp" method="post">

? ? ? <label>用戶: </label>

? <input name="username" value=""/>

? ? ? <label>密碼: </label>

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

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

??

? </form>

??

? </div>

? ?

? </body>

</html>



<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%

?String path = request.getContextPath();

?String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

?String username="";

?String password="";

?request.setCharacterEncoding("utf-8");//防止中文亂碼

?username=request.getParameter("username");

?password=request.getParameter("password");

?

?

?if("123".equals("username")&&"123".equals("password"))

?{

? ?request.getRequestDispatcher("login_success.jsp").forward(request,response);

?}

?else

?{

? ?response.sendRedirect("login_failure.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.01 Transitional//EN">

<html>

? <head>

? ? <base href="<%=basePath%>">

? ??

? ? <title>My JSP 'login_success.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>

? ? ? 登錄成功 <br>

? </body>

</html>



<%@ 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.01 Transitional//EN">

<html>

? <head>

? ? <base href="<%=basePath%>">

? ??

? ? <title>My JSP 'login_failure.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>

? ? ? 登錄失敗 <br>

? </body>

</html>


正在回答

1 回答

如果是404錯位,那就是你的跳轉(zhuǎn)路徑填寫錯誤,如果是500,那就看看你代碼哪里寫錯了,而且還沒報錯


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

qq__夏末_04163973 提問者

非常感謝!
2016-10-25 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

為什么一直跳轉(zhuǎn)登陸失敗啊,

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

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

幫助反饋 APP下載

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

公眾號

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