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

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

正在回答

5 回答

怎么解決呢,也遇到這個(gè)問(wèn)題了

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

我也是出現(xiàn)同樣的問(wèn)題,看到有一個(gè)警告提示是說(shuō):The method getRealPath(String) from the type ServletRequest is deprecated

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

應(yīng)該是:tomcat安裝路徑\webapps\項(xiàng)目名字\request.jsp 才對(duì)。

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

gary_gary

我也出現(xiàn)同樣的問(wèn)題,不知道是什么原因,同樣是NULL
2015-04-24 回復(fù) 有任何疑惑可以回復(fù)我~
<%@?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>request內(nèi)置對(duì)象</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>request內(nèi)置對(duì)像</h1>
??<%
????request.setCharacterEncoding("utf-8");?//解決中文亂碼問(wèn)題,無(wú)法解決URl傳參的亂碼問(wèn)題
????request.setAttribute("password",?"123456");
???%>
??用戶(hù)名:<%=request.getParameter("username")?%><br>
??愛(ài)好:<%
??if(request.getParameterValues("favorite")!=null)
??{
?????String[]?favorites?=?request.getParameterValues("favorite");
?????for(int?i=0;i<favorites.length;i++)
?????{
???????out.println(favorites[i]+"&nbsp;&nbsp;");
?????}
???}
???%><br>
??????密碼:<%=request.getAttribute("password")%><br>
??????請(qǐng)求的MIME類(lèi)型:<%=request.getContentType()?%><br>
??????獲得協(xié)議類(lèi)型及版本號(hào):<%=request.getProtocol()?%><br>
??????獲得服務(wù)器主機(jī)名字:<%=request.getServerName()?%><br>
??????獲得服務(wù)器的端口號(hào):<%=request.getServerPort()?%><br>???
??????請(qǐng)求文件的長(zhǎng)度:<%=request.getContentLength()?%><br>
??????請(qǐng)求客戶(hù)端的IP地址:<%=request.getRemoteAddr()?%><br>
??????請(qǐng)求的真實(shí)物理路徑:<%=request.getRealPath("request.jsp")?%><br>
?????請(qǐng)求的上下文路徑:<%=request.getContextPath()?%>?<br>
??</body>
</html>


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

親,能不能把你jsp里面的代碼粘貼出來(lái),好幫你分析原因。

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

舉報(bào)

0/150
提交
取消
微信客服

購(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)