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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

為什么無(wú)法獲得account,卻可以獲得另外的屬性呢?!

為什么無(wú)法獲得account,卻可以獲得另外的屬性呢?!

PHP
至尊寶的傳說 2023-03-13 20:16:11
diapatcher.forward(request,response),在轉(zhuǎn)到的jsp頁(yè)面中,用<jsp:useBean id="account" type="bean.Account" scope="request" > <jsp:getProperty name="account" property="name" /></jsp:useBean>無(wú)法獲得這個(gè)account。用<% bean.Account a = (bean.Account)request.getAttribute("account"); out.print(a.getName());%>卻可以獲得這個(gè)屬性,為什么?
查看完整描述

1 回答

?
暮色呼如

TA貢獻(xiàn)1853條經(jīng)驗(yàn) 獲得超9個(gè)贊

get/setAttribute指的是容器中的某個(gè)變量,而<jsp:getProperty是去http的參數(shù)請(qǐng)求,所以無(wú)法得到,因?yàn)槟阋呀?jīng)重定向了,getParamter方法取不到,jsp:getProperty自然取不到,你可以用setParamter方法設(shè)置后再??!

查看完整回答
反對(duì) 回復(fù) 2023-03-15
  • 1 回答
  • 0 關(guān)注
  • 100 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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