2014年計算機二級《WEB》考點:JSP的基礎原理
時間:
家輝2
資訊
Servlet與JSP的相同點與不同點
JSP的組成:元素與模板數據(html標簽)
JSP腳本元素:
聲明:%!%
Scriplet:%%
腳本表達式:%=%
JSP注釋%----%!----///**/
JSP指令:%@pageimport=,contentType=pageEncoding=errorPage=err.jspisErrorPage=true|false......%
%@includefile=%靜態包含:包含另一個頁面的源代碼
%@taglibprefix=uri=%
JSP標準動作:jsp:includepage=urlflush=true/動態包含:包含另一個頁面的輸出
jsp:forwardpage=url/requestDispatcher.forwart(request,response);
jsp:paramname=keyvalue=value/