Web Component Development with Servlets JSPs, Java EE 6
JavaServer Pages (JSP) technology and servlets are the key web-tier technologies defined in the Java Platform, Enterprise Edition (Java EE platform). In this course, experienced developers of Java technology applications will gain the knowledge and skills to quickly build web applications suited to any Java EE 6 application server using JSP and servlet technologies. You will be exposed to the current methods for analyzing, designing, developing, and deploying web applications with Java technologies. Lab exercises provide you with experience in constructing and deploying the small-to-medium scale web applications found in intranet and low-volume commercial sites. The course features the Java EE 6 technology and uses the Java EE 6 SDK and the Glassfish Application Server. You will perform the lab exercises using the NetBeans Integrated Development Environment (IDE). This course is excellent preparation for the Sun Certified Servlet and JSP Developer certification exam.
What You'll Learn
- Write servlets using the Java programming language (Java servlets)
- Create robust web applications using MVC architecture, session management, filters, and database integration
- Write JSP pages
- Create easy-to-maintain view components using JSP pages, the Expression Language, and elements of the JSP Standard Tag Library (JSTL)
- Create secure web applications using the features of the Java EE web container
Who Needs to Attend
- Java developers creating web components (such as servlets and custom tags)
- Java developers preparing for the Sun Certified Servlet and JSP Developer exam
Prerequisites
- Ability to:
- Write Java technology applications, demonstrating significant programming ability
- Write a web page using HTML
- Integrate existing Java code (for example, reuse existing classes created by other team members )
- Design Java technology applications
- Functionally describe the benefits of an n-tier architecture
Follow-On Courses
- Business Component Development with EJB Technology, Java EE 6 (SL-355-EE6)
- Building Database-Driven Applications with Java Persistence API (SL-370-EE6)
Course Outline
1. Introduction to Java Servlets
- Web applications, CGI, and the role of Java
- Benefits of Java servlet technology
- Create a simple Java Servlet
- Three-tier architecture
- Model-View-Controller (MVC) architecture
2. Introduction to Java Server Pages
- Why Servlets are not the whole solution
- Essentials of JSPs
- Fundamentals and reasons for MVC architecture
3. Implementing an MVC Design
- Code a controller using a servlet
- Code a view using a JSP
- Forward control from a servlet to a JSP
- Fundamentals of EL
- Implement a simple MVC system
4. The Servlet's Environment
- More details of the HTTP protocol
- Fundamentals of HTML forms
- Fundamentals of the HttpServlet and related APIs
- Write code that manages client sessions and cookies
5. Container Facilities for Servlets and JSPs
- Purpose and structure of deployment descriptors
- Control context root and servlet mapping
- Create and use context and init parameters
- Use annotations to configure servlets
6. More View Facilities
- Four data scopes
- EL dot '".", and array access '"[operators with Java Beans, arrays, and collections
- EL implicit objects
- Create and use arithmetic expressions in EL
- The need for iteration and selection in the view and using JSTL tags to address those needs
7. Developing JSP Pages
- Origins, benefits, and weaknesses of JSPs
- JSP technology, the conversion of JSPs to servlets, and the lifecycle of JSPs
- JSP scripting elements, declarations, and directives
- Use JSP implicit variables
- Use jsp: tags
8. Developing JSP Pages Using Custom Tags
- Relate the JSTL to common job roles in web application development
- Use of tags in JSP development
- Recognize correct syntax for tags
- Configure a JSP to use tags from the JSTL
- Write JSP code using several standard tags
- Capabilities of JSTL tags
9. More Controller Facilities
- The servlet lifecycle
- Use more advanced elements of the servlet APIs
- Create filters and use them in web application
10. More Options for the Model
- Roles of JDBC and JPA
- Elements that make up the model
- Fundamentals of connecting to a database using JDBC or JPA
11. Asynchronous Web Applications
- Interactions that are essential to asynchronous web pages
- Role of AJAX-style client side programming
- Implement asynchronous servlets using the facilities of Java EE 6
12. Web Application Security
- Role of the container in security
- Implement four authentication models
- Force the use of encryption between a web application and the client browser
- Role of JAAS in pluggable/extensible authentication for web application
United States [