*

Java EE 6 Web Development with Servlets and JSP’s

Java EE 6 Web Development with Servlets and JSP’s Training

AanbiederTwice IT Training
Kosten 1.876,00
Meer informatie over Twice IT Training

Overzicht

In deze cursus komt aan de orde hoe servlets en JSP’s zijn opgebouwd en gebruikt worden bij Java EE Web Applicaties. Eerst komen van servlets de belangrijkste methoden aan de orde, zoals servlet initialisatie, het lezen van HTPP request data en het schrijven van HTPP response data. Ook de verschillende scopes in Web Applicaties zoals session scope en application scope komen daarbij aan de orde. Dan komen van JSP’s de basis syntax elementen zoals scriplets, expressions en declarations aan de orde en wordt aandacht besteed aan verschillende page directives. Een centraal element in de cursus is de rolverdeling tussen servlets als controller voor programma logica en JSP’s als view voor output data, in de vorm van het MVC (Model View Controller) design pattern. Bij de bespreking van dit pattern komen de RequestDispatcher en attributes in verschillende scopes aan de orde. Ruime aandacht is er voor technieken om Java code uit het JSP view weg te houden door het gebruik van Java beans en custom tags. Voorts komen deployment descriptors, security in Web Applicaties, filters en het event framework aan de orde. Optioneel, indien daar tijd voor is, wordt op de laatste dag van de cursus aandacht besteed aan een overview van het standaard framework voor Java Web Applicaties JSF (Java Server Faces). Volledige omschrijving

Bestemd voor

Ontwikkelaars die Java Web Applicaties willen bouwen met de Java EE componenten Servlets en JSP’s.

Benodigde kennis

Ervaring met Java programmeren en object orientatie is vereist.
Inschrijven

Beschrijving

Module : Introduction Java Editions Java EE Standard Java EE Servers What is a servlet? Possible servlet tasks Simple Servlet What is a Java Server Page(JSP)? Simple JSP Problems with Servlets and JSP Classic MVC pattern Model 2 Architecture Example MVC Framework Module : Servlets Servlets Servlet interface Reading initialization parameters Concurrent Access ServletContext interface Destroying servlets Module : Web Application Structure Web applications Purposes of Web Applications Structure of a Web application Example Structure Registering a Web application Defining Custom URL’s WAR Files Handling Relative URL’s Module : HTTPServlets HTTP Requests and Responses HttpServlets service, doGet and doPost Reading Form Data HTTP Request Headers Other HttpServletRequest Methods Populating the Response HTTP Status Codes HTTP Response Headers Module : Scope Objects Sharing data with Scope Objects Attributes ServletContext Application Scope Session Scope Request Scope Page Scope Module : Sessions Why Session Tracking? Session Tracking Mechanisms Sending and reading cookies Methods in the Cookie API Session tracking with Cookies URL Rewriting Hidden from fields HttpSession methods Session tracking API Module : JSP’s The need for JSP Types of scripting elements Benefits of JSP Translation and Request Time Setting up your environment Expressions Predefined variables Scriptlets Declarations jspInit and jspDestroy Module : JSP Directives What are JSP directives JSP page directive import attribute contenttype attribute generating Excel data isThreadSafe attribute session attribute buffer and autoflush attributes extends attribute errorPage and isErrorPage include directive taglib directive Module : JSP Standard Actions Including files at request time jsp:include Including applets jsp:plugin, jsp:param and jsp:params What are beans? Basic use of beans in JSP Accessing bean properties Setting bean properties explicitly Association with input parameters Sharing Beans Values of the Scope attribute Conditional Bean Operations Module : MVC Architecture Why combine servlets and JSP? Handling a single request MVC Approach Implementing MVC Dispatching requests Storing Data in Servlet Request Storing data in Session Storing data in ServletContext Forwarding requests Including requests Module : Expression Language Main point of EL Advantages of Expression Language Activating the Expression Language Invoking the EL Common EL problem Referencing scoped variables Accessing bean properties Using EL operators Module : Custom Tags What are tag libraries? Custom Tag Features Comparison of tag extensions Components of a tag library Simple Tag Handler Simple Tag Library Descriptor Accessing Custom Tags from JSP Tags that use attributes Tags that use body content Tags that optionally use body content JSP-based tags (tag files) Tags manipulating their body Tags with dynamic attribute values Complex objects for attributes Looping tags Nested tags Module : Deployment Descriptors Deployment Descriptor Version 2.3 versus 2.4 Defining Custom URL’s Notes on Custom URLs Disabling invoker servlet Application Wide Initialization Preloading pages Welcome pages Error pages Session Time-Outs Module : Security Major security concerns Declarative security Programmatic security Form-based authentication Deployment Descriptor settings Login Screens BASIC authentication Problems with declarative security Combining security mechanisms Pure Programmatic Security Programmatic Security with SSL Module : Filters What are Filters? Advantages of Filters Filter Interface Creating Filters doFilter method Servlet Filter Related Classes Filters in a Chain Sample Reporting Filter Filter Mapping Accessing the Servlet Context Filter initialization parameters Modifying the Response Module : Event Listeners Life-Cycle Events Framework Available Listeners Implementation Strategy Reason for listeners ServletContext Listeners ServletContextAttributeListeners HttpSession Listeners SessionAttribute Listeners Module : Java EE Design Patterns Intercepting Filter Front Controller Business Delegate Service Locator Optionele Module : JSF Advantages of JSF JSF and Struts Steps in JSF Simple Navigation faces.config Dynamic Navigation Action Controllers Managed Beans Converter and Validators JSF tag libraries