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

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

JSP學(xué)習(xí)中在使用useBean時(shí),class報(bào)錯(cuò)。 cannot be resolved to a type

JSP學(xué)習(xí)中在使用useBean時(shí),class報(bào)錯(cuò)。 cannot be resolved to a type

<%@?page?language="java"?import="java.util.*"?contentType="text/html;?charset=utf-8"%> <%@?page?import="Math.Box"?%> <% 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"> --> ??</head> ?? ??<body> ?? <jsp:useBean?id="box"?class="Math.Box"?scope="page"></jsp:useBean> ?? <h1>普通方式顯示javabeans</h1> ??</body> </html>java代碼package?Math; public?class?Box?{ private?int?length; private?int?width; private?int?height; public?Box()?{ } public?int?getLength()?{ return?length; } public?void?setLength(int?length)?{ this.length?=?length; } public?int?getWidth()?{ return?width; } public?void?setWidth(int?width)?{ this.width?=?width; } public?int?getHeight()?{ return?height; } public?void?setHeight(int?height)?{ this.height?=?height; } }在useBean的class報(bào)錯(cuò):?cannot be resolved to a type強(qiáng)行運(yùn)行報(bào)錯(cuò)Unable to compile class for JSP:The server encountered an internal error that prevented it from fulfilling this request.
查看完整描述

1 回答

已采納
?
安靜_天空

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

我運(yùn)行了一下你的代碼,把Math改個(gè)名字就可以正常運(yùn)行~我想可能是math是一個(gè)java.util中的類,類式與關(guān)鍵字吧~

查看完整回答
1 反對(duì) 回復(fù) 2016-04-04
  • 1 回答
  • 0 關(guān)注
  • 2471 瀏覽
慕課專欄
更多

添加回答

舉報(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)