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

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

javaBean實(shí)例賦值 中文有亂碼 請(qǐng)大神看一眼

login文件

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

<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>
?
</style>
</head>

<body>
?
	<fieldset>
		<legend>login</legend>
		<h1>提交</h1>
		密碼
		<form?action="dologin.jsp"?name="loginform"?method="post">
			<br>?用戶(hù)名<input?type="text"?name="username">?<br>?密碼<input
				type="password"?name="password">?<br>?愛(ài)好<input
				type="checkbox"?name="favorite"?value="ww">?看歷史<br>?<input
				type="checkbox"?name="favorite"?value="music">欣賞音樂(lè)?<br>
			<input?type="checkbox"?name="favorite"?value="欣賞電影">欣賞電影?<br>
			<input?type="checkbox"?name="favorite"?value="運(yùn)動(dòng)">運(yùn)動(dòng)?<br>
			<input?type="submit"?value="登錄">

		</form>
	</fieldset>
?
	?
????????
</body>
</html>

dologin文件

<%@?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?'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>
</style>
</head>

<body>
	<jsp:useBean?id="user"?class="po.Users"?scope="page"></jsp:useBean>
	<jsp:setProperty?property="*"?name="user"?/>
	用戶(hù)名:<%=user.getUsername()?%>
	<br>?密碼:<%=user.getPassword()?%><br>
</body>
</html>


正在回答

2 回答

request.setCharacterEncoding("utf-8");

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

慕粉2139036677 提問(wèn)者

非常感謝!
2017-03-02 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

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

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

進(jìn)入課程

javaBean實(shí)例賦值 中文有亂碼 請(qǐng)大神看一眼

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

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

幫助反饋 APP下載

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

公眾號(hào)

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