freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

jsp試題及答案-全文預(yù)覽

  

【正文】 td amp。唐朝 /td /tr tr td amp。宋朝 /td /tr tr td amp。詩(shī)人李白是中國(guó)歷史上哪個(gè)朝代的人? /p table width=298 border=1 height=98 tbody tr td amp。%!DOCTYPE HTML PUBLIC //W3C//DTD HTML Transitional//ENhtml head base href=%=basePath% titleMy JSP 39。amp。 double h1 = (h)。 } public double getTiji() { return * radius * radius * high。 } public double getHigh() { return high。 private double high。 String basePath = () + :// + () + : + () + path + /。 String basePath = () + :// + () + : + () + path + /。5. 異常的處理,可在該方法的代碼段中包含3類代碼: 、 和finally代碼塊。2. form method=______ action=…/form.橫線中可以填入的單詞是( ) 3. input type=_______ name=”inputname” value=”inputvalue”.橫線處不能填入的單詞是( ) ( ) 5. 不能在不同用戶之間共享數(shù)據(jù)的方法是( )A. 通過session對(duì)象 B. 利用文件系統(tǒng) D. 通過application對(duì)象九. 填空題1. jsp主要內(nèi)置對(duì)象有: , , , , ,_____________,out,config,page。A.(“title”)。5. :_________和_________。 C. 為增強(qiáng)程序的可讀性,建議將% page %指令放在JSP文件的開頭,但不是必須的 D. % page %指令中的屬性只能出現(xiàn)一次5. 對(duì)于JSP中的聲明%! %的說法錯(cuò)誤的是:( )A.一次可聲明多個(gè)變量和方法,只要以“。A. %=++count % B. %++count。2. 運(yùn)行頁(yè)面如下:第三章五. 選擇題1. 在JSP中,( )動(dòng)作用于將文件包含入JSP頁(yè)面。最后由Web服務(wù)器將執(zhí)行結(jié)果響應(yīng)(Response)給客戶端瀏覽器。A.JSP ,它們是( )和( )。該技術(shù)的基本原理是將瀏覽器提交至Web服務(wù)器的數(shù)據(jù)通過環(huán)境變量傳遞給其他外部程序,經(jīng)外部程序處理后,再把處理結(jié)果傳送給Web服務(wù)器,最后由Web服務(wù)器把處理結(jié)果返回瀏覽器。參考答案一. 選擇題1. D 2. C D 3. C 4. A二. 問答題1. 答:首先由瀏覽器向Web服務(wù)器提出訪問JSP頁(yè)面的請(qǐng)求(Request),然后由JSP容器負(fù)責(zé)將JSP轉(zhuǎn)換成Servlet,產(chǎn)生的Servlet經(jīng)過編譯后生成類文件,然后再把類文件加載到內(nèi)存進(jìn)行執(zhí)行。它高速并且強(qiáng)壯,并且具有JSP/Servlet的解析能力。 % __________/html 以下( )語(yǔ)句可以在下劃線處插入,并且運(yùn)行后輸出結(jié)果是:1。 B. 可以在一個(gè)頁(yè)面中使用多個(gè)% page %指令。3. Tomcat服務(wù)器的默認(rèn)端口是 4. jsp:param經(jīng)常和_________、_________以及_________動(dòng)作元素一起使用。charset=GBK%html head title/title /head body %include file= % hr h2 align=center已經(jīng)輸入的信息/h2 br center 姓名:%=(name1) %br 郵箱:%=() % /center /body/html第四章八. 選擇題1. 在JSP中,下列( )語(yǔ)句可以獲取頁(yè)面請(qǐng)求中一個(gè)文本框的輸入(文本框的名稱為title).。 D. (“title”)。4. request對(duì)象實(shí)現(xiàn)的接口是___________。效果如下:參考答案八. 選擇題1. A 2. A 3. D 4. B 5. A九. 填空題1. application,exception,pagecontext,request,session,response2. 用于獲取服務(wù)器信息并將其作為響應(yīng)返回給客戶端,用于獲取服務(wù)器信息并將其作為響應(yīng)返回給客戶端3. application scope,session scope,request scope,page scope4. HttpServletResponse5. try,catch十. 編程題1. % page language=java import=.* pageEncoding=GBK%% String path = ()。 starting page/title meta equiv=pragma content=nocache meta equiv=cachecontrol content=nocache meta equiv=expires content=0 meta equiv=keywords content=keyword1,keyword2,keyword3 meta equiv=description content=This is my page ! link rel=stylesheet type=text/css href= /head body h2 align=center 請(qǐng)輸入圓柱的參數(shù) /h2 br center form metod=post action= table tr td 圓柱底面半徑: /td td input type=text name=radius /td /tr tr td 圓柱的高: /td td input type=text name=high /td /tr tr td colspan=2 align=center input type=submit value=提交 name=submit /td /tr /table /form /center /body/html% page language=java import=.* pageEncoding=GBK%% String path = ()。 starting page/title meta equiv=pragma content=nocache meta equiv=cachecontrol content=nocache meta equiv=expires content=0 meta equiv=keywords content=keyword1,keyword2,keyword3 meta equiv=description content=This is my page ! link rel=stylesheet type=text/css href= /head body %!public class Yuanzhu { private double radius。 } public double getRadius() { return radius。 } public double getArea() { return 2 * * radius * radius + 2 * * radius * high。 double r1 = (r)。nbsp。 String basePath = () + :// + () + : + () + path + /。nbsp。nbsp。nbsp。nbsp。nbsp。nbsp。nbsp。nbsp。nbsp。String basePath = ()+://+()+:+()+path+/。 String s1=(R)。 } if((B)){ n++。 C. 使用表單隱藏字段D. 使用Servlet API5. 請(qǐng)選擇response對(duì)象的作用范圍:( )A.a(chǎn)pplication scope B.session scope C.request scopeD.page scopejsp:setProperty動(dòng)作使用錯(cuò)誤的是( )A.jsp:setProperty name=“mybean” property=“*” /B.jsp:setProperty name=“mybean” property=“myproperty” param=“paramname”/C. jsp:setProperty name=“mybean” /D.jsp:setProperty name=“mybean” property=“myproperty” value=“myvalue”/十二. 填空題6. application對(duì)象是 ,而session對(duì)象則是每個(gè)客戶專用的。要求必須使用javabean編寫。public class Circle { private double radius。 } public void setRadius(double r) { radius=r。 } public double getS() { s=2**radius。%!DOCTYPE HTML PUBLIC //W3C//DTD HTML Transitional//ENhtml head base href=%=basePath% title配置頁(yè)/title meta equiv=pragma content=nocache meta equiv=cachecontrol content=nocache meta equiv=expires content=0 meta equiv=keywords content=keyword1,keyword2,keyword3 meta equiv=description content=This is my page ! link rel=stylesheet type=text/css href= /head body bgcolor = fcfa62 form method = post action= h1 align = c
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1