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

正文內(nèi)容

動態(tài)網(wǎng)頁技術(shù)ppt課件(已改無錯字)

2023-06-06 12:08:48 本頁面
  

【正文】 brbr from name=form1 信用卡卡號: input type=text name=no value=br 信用卡密碼: input type=password name=pw value=br 驗證碼: input type=text name=result value= % Rand obj=new Rand()。 (())。 (br)。 % input type=submit name=submit value=確定 /form /body /html 167。 3 動態(tài)網(wǎng)頁技術(shù) 167。 服務(wù)器端的腳本 ? JSP腳本及其實例 ? JSP代碼示例 2 %@page language=java contentType=text/html。charset=gb2312% HTML head title循環(huán)語句 /title /head body bgcolor=FFFFFF % for (int i=1。 i=4。 i++) { % H%=i%Hello/H%=i% % } % /body /HTML 167。 3 動態(tài)網(wǎng)頁技術(shù) 167。 服務(wù)器端的腳本 ? JSP腳本及其實例 ? JSP內(nèi)部隱含對象 ? Request: 包含客戶端所有傳送到服務(wù)器上的請求信息 ? Response 用于服務(wù)器端向客戶 端 發(fā)送 響應(yīng) 信息 ? out 用來傳送響應(yīng)的輸出 ? page 指 JSP網(wǎng)頁本身 ? pageContext 用來對 網(wǎng)頁屬性 進行管理 ? session 一次連接請求期間的 會話 ? application 指服務(wù)器上 正在執(zhí)行的 程序 ? config 指 servlet的架構(gòu) 配置 對象 167。 3 動態(tài)網(wǎng)頁技術(shù) 例:使用 request對象 html headtitleget request info example /title /head body form action= brGet request results. brinput type=text name=myname brinput type=submit name=get value /form Request Method:%=()% brServlet Path:%=()% brQuery String:%=()% brContent Type:%=()% brProtocol:%=()% brPath Info:%=()% brServer Name:%=()% brServer Port:%=()% brRemote Host:%=()% brRemote Addr:%=()% brScheme:%=()% brGet request value:%=(myname)% /body /html 167。 3 動態(tài)網(wǎng)頁技術(shù) 例:使用 response對象 在編寫 servlet程序時,先調(diào)用 setContentType()方法設(shè)置MIME類型,然后再調(diào)用 getWriter()創(chuàng)建 PrintWriter對象,并利用它的方法向客戶端輸出內(nèi)容。編寫 JSP程序時,不需要這樣,而是通過 page指令的 ContentType屬性來指定 MIME類型,而out是用 getWriter()創(chuàng)建的 PrintWriter對象的隱含對象,所以可以直接調(diào)用 out對象輸出響應(yīng)。 html headtitleget request info example /title /head body form action= brGet request results. brinput type=text name=myname brinput type=submit name=get value /form Request Method:% (())。% brServlet Path:% (())。% brQuery String:% (())。% brContent Type:% (())。% brProtocol:% (())。% brPath Info:% (())。% brServer Name:% (())。% brServer Port:% (())。% brRemote Host:% (())。% brRemote Addr:% (())。% brScheme:% (())。% brGet request value:% ((myname))。% /body /html 167。 3 動態(tài)網(wǎng)頁技術(shù) 167。 服務(wù)器端的腳本 ? JSP腳本及其實例 ? JSP動態(tài)網(wǎng)頁實例 3:一個簡單的乘法練習(xí)器 %@page language=java contentType=text/html。 charset=gb2312 % html head title 一個簡單的乘法器 /title /head body bgcolor=ffffff h1 請輸入內(nèi)容并計算方法: /h1 form action= method=post input type=text name=x value= input type=text name=y value== input type=text name=result value=br input type=submit name=submit /form br String strx=(x) 。 if(strx==null) strx=0。 int intx=(strx).intValue() 。 String stry=(y)。 if(stry==null) stry=0。 int inty=(stry).intValue() 。 String strresult=(result)。 if(strresult==null) strresult=0。 int intresult=(strresult).intValue() 。 if (intx*inty==intresult) { (Answer: Right)。 } else (Answer:Not Right)。 % /body /html 167。 3 動態(tài)網(wǎng)頁技術(shù) 167。 服務(wù)器端的腳本 ? JSP腳本及其實例 ? JSP動態(tài)網(wǎng)頁實例 4:一個登錄的頁面 ? 注:運行此網(wǎng)頁,需在服務(wù)器上建立一個 Access數(shù)據(jù)庫(含有一個member表),并為它建立一個名為 ec的 odbc數(shù)據(jù)源; html head titleconnect the db/title /head body bgcolor=ffffff form action= method=post input style=fontsize:12px。width:210px type=text name=user size=20 input style=fontsize:12px。width:210px type=password name=password size=20 br input type=submit name=user value=登錄 input type=reset name=user value=取消 /form /body /html %@ page contentType=text/html。 charset=gb2312 % html head titleconnect the db/title /head %@ page import=.*% body bgcolor=ffffff % ()。 String url=jdbc:odbc:ec。 String user=(user)。 String password=(password)。 Connection conn= (url,user,password)。 Statement stmt=()。 String sql=select * from member where user_name=39。+user+39。 //member為數(shù)據(jù)源 ec庫中的一張表; ResultSet rs=(sql)。 if(()) { (你已成功登錄 !)。
點擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1