Session 2: Using JSP Tags
Thông tin tài liệu:
Nội dung trích xuất từ tài liệu:
Session 2: Using JSP Tags Session2 UsingJSPTags SessionObjectives Describethevariouselementsofa JavaServerPage DescribethevariousJSPTagsinbrief eACCP2003/DynamicPagesUsingJSP/Session2/2of45 WhatdoesaJSPlooklike? ThreemainJSPconstructs: Directives Allowsonetocontrolstructureoftheservlet ScriptingElements UsedtoincludeJavacode Actions Specifictagsthataffecttheruntimebehaviorofthe JSPs eACCP2003/DynamicPagesUsingJSP/Session2/3of45 FixedTemplate AnExample dataMyFirstProgram.jsp JSP Directive JSP Scriptlet JSP Expression eACCP2003/DynamicPagesUsingJSP/Session2/4of45 Whathappensunderthehood? User WebServer/Request ServletEngine No JSPHandlerServlet Newor(PageCompilationServlet) modifiedfile? Yes Compileinto Execute Servlet Servlet eACCP2003/DynamicPagesUsingJSP/Session2/5of45 VariousElementsinaJSP Directives page Definesinformationthatwillbegloballyavailablefora JSP include UsedtoinserttextandcodeatJSPtranslationtime taglib Definesamechanismforextendingthecurrentsetof JSPtags eACCP2003/DynamicPagesUsingJSP/Session2/6of45 DifferentAttributesofthe PageDirective Attribute Definitionlanguage= This attribute tells the server about the language to be”” usedtocompletetheJSPfile.Atpresent,Javaistheonly languagethatcanbeused. extends= This attribute defines the parent class that the generated” servletwillextend. import= This attribute defines the list of packages that will be” available to this JSP. However, a comma must separate eachpackage.session=true|false Thisattributedetermineswhetherthesessiondatawillbe availabletothispage.Thedefaultistrue. buffer=none| buffered.Thedefaultvalueis8kb. eACCP2003/DynamicPagesUsingJSP/Session2/7of45 DifferentAttributesofthe PageDirective–(1) Attribute DefinitionautoFlush=true| Determines whether the output buffer will be flushedfalse automatically, or whether it will raise an exception whenthebufferisfull.Thedefaultistrue. isThreadSafe=true Specifies whether page can service more than one|false requestatatime.Thedefaultistrue.info=” Specifies information about the JSP, can be accessedbyServlet.getServletInfo(). errorPage= ThisattributerepresentstherelativeURLtotheJSP” thatwillhandleexceptions. isErrorPage=true| This attribute states whether or not the JSP is anfalse errorPage.Thedefaultisfalse. contentType= This attribute represents the MIME type and” charactersetoftheresponse. eACCP2003/DynamicPagesUsingJSP/Session2/8of45 UsingpageAttributesAn example JSP Elements JSP Elements eACCP2003/DynamicPagesUsingJSP/Session2/9of45 MoreonDirectives includedirective Syntax taglibdirective Syntax eACCP2003/DynamicPagesUsingJSP/Ses ...
Tìm kiếm theo từ khóa liên quan:
công nghệ thông tin kỹ thuật lập trình tin học vi tính Using JSP TagsGợi ý tài liệu liên quan:
-
52 trang 431 1 0
-
Top 10 mẹo 'đơn giản nhưng hữu ích' trong nhiếp ảnh
11 trang 318 0 0 -
74 trang 302 0 0
-
96 trang 296 0 0
-
Báo cáo thực tập thực tế: Nghiên cứu và xây dựng website bằng Wordpress
24 trang 289 0 0 -
Đồ án tốt nghiệp: Xây dựng ứng dụng di động android quản lý khách hàng cắt tóc
81 trang 283 0 0 -
EBay - Internet và câu chuyện thần kỳ: Phần 1
143 trang 277 0 0 -
Tài liệu dạy học môn Tin học trong chương trình đào tạo trình độ cao đẳng
348 trang 269 1 0 -
Tài liệu hướng dẫn sử dụng thư điện tử tài nguyên và môi trường
72 trang 267 0 0 -
Kỹ thuật lập trình trên Visual Basic 2005
148 trang 266 0 0 -
64 trang 264 0 0
-
Bài giảng An toàn và bảo mật thông tin - Trường đại học Thương Mại
31 trang 255 0 0 -
47 trang 231 0 0
-
Giáo trình Hệ điều hành: Phần 2
53 trang 221 0 0 -
LUẬN VĂN: TÌM HIỂU PHƯƠNG PHÁP HỌC TÍCH CỰC VÀ ỨNG DỤNG CHO BÀI TOÁN LỌC THƯ RÁC
65 trang 216 0 0 -
Đồ án tốt nghiệp: Xây dựng ứng dụng quản lý kho hàng trên nền Web
61 trang 215 0 0 -
83 trang 213 0 0
-
Giáo trình Autocad - Nghề: Quản trị mạng máy tính - Trình độ: Cao đẳng nghề (Phần 2)
52 trang 210 0 0 -
NGÂN HÀNG CÂU HỎI TRẮC NGHIỆM THIẾT KẾ WEB
8 trang 208 0 0 -
BÀI GIẢNG KINH TẾ CHÍNH TRỊ MÁC - LÊNIN - TS. NGUYỄN VĂN LỊCH - 5
23 trang 205 0 0