Curso Servlet and JSP Programming with JSTL and Spring MVC
32hVisão Geral
O Curso Servlet and JSP Programming with JSTL and Spring MVC, foi projetado para permitir que desenvolvedores de software se tornem produtivos usando Servlets e JavaServer Pages (JSP), a base do desenvolvimento de aplicativos Web em J2EE. Você aprenderá a escrever, empacotar e implementar aplicativos da Web em um ambiente de produção do WebSphere.
Objetivo
Após concluir este Curso Servlet and JSP Programming with JSTL and Spring MVC, você será capaz de:
- Descrever os princípios fundamentais do J2EE Web Container no WebSphere
- Empregue a API Servlet para produzir código que atenda a qualquer requisito de desenvolvimento web
- Gerenciar sessões em uma conexão HTTP
- Aplique os fundamentos do JavaServer Pages
- Crie e aplique tags JSP personalizadas
- Aplicar Spring MVC a uma solução baseada na web
Publico Alvo
- Desenvolvedores de aplicativos
- Programadores Java
- Programadores cliente-servidor
- Desenvolvedores de software
Pre-Requisitos
- Compreenda os fundamentos da Programação Orientada a Objetos
- Compreenda os fundamentos da linguagem e as principais APIs do Java 2 Standard Edition (J2SE)
Materiais
Inglês/Português/Lab PraticoConteúdo Programatico
Introduction to J2EE
- J2EE definition
- J2EE history
- Applications on the web
- Creating an application
- Creating source code
- application.xml
- web.xml
- Application deployment
- XML in J2EE
Introduction to Programming Servlets
- Servlets and the web container
- init()
- service()
- destroy()
- HttpServlet
- doGet()
- doPost()
- Additional handling methods
- Additional methods
- Servlets and performance
- Servlets and threading
- Consequences of threading
- Configuring a servlet for deployment
- Servlet entry in web.xml
- URL mappings
ServletContext and SrvletConfig
- ServletContext interface
- Initialization parameters
- Scope of a ServletContext interface
- Context attributes
- Multiple hosts and servlet contexts
- ServletConfig
Request and Response Objects
- The request object
- getParameter
- Other request object methods
- Request path elements
- Path translation methods
- Attributes
- Cookies
- Lifetime of the request object
- The response object
- Buffering
- Headers
- Convenience methods
- Lifetime of the response object
Sessions
- Definition
- How sessions work
- Cookies
- Introduction
- Scope
- Cookies and sessions
- URL rewriting
- Using sessions with J2EE
- Using getSession
- Session Timeout
- Configuration
- Details
- Binding attributes into a session
- Last accessed times
- Sessions and threading
- Threads and clusters
Dispatching Requests
- Obtaining a request dispatcher
- Query strings in request dispatcher paths
- Using a request dispatcher
- The include method
- Included request parameters
- The forward method
- Query string
- Forwarded request parameters
Listeners
- Definition
- ServletContext event handling
- Working with the interfaces
- ServletContext creation/destruction
- ServletContext event handling
- ServletContext listeners
- Attribute
- XML for context attribute listeners
- Handling session events
- Session life-cycle event handling
- HttpSessionEvent
- HttpSessionBindingListener
- HttpSessionBindingEvent
- HttpSessionActivationListener
- Session attribute event handling
- Session attribute interfaces
Wrappers
- History
- Introduction
Filters
- Definition
- Filtering components
- Basic procedure
- Filter life-cycle
- Wrapping requests and responses
- Filter environment
- Filter mapping in web.xml
- Filters and the RequestDispatcher
Introduction to JSP
- Introduction
- Adding Java code to a JSP
- JSP implicit objects
- Using request and out
- Using the session object
- Other elements of a JSP
- Declarations
- Directives
- JSP expression language
- Standard action tags
- Custom action tags
JSP Declarations and Directives
- Declarations
- Invoking declarations
- Attributes and methods
- Directives
- Directive syntax
- The include directive
- The page directive
- page directive attributes
- page attributes
- The taglib directive
Using Beans - Accessing JavaBeans Via Tags
- Introduction
- Specifying a bean to use
- useBean : id and class
- useBean : scope, type and beanName
- getProperty
- useBean with child tags
- setProperty
- setProperty : value
- setProperty : property and param
- Mapping properties to a new bean
- Mapping parameters to attributes
- Data conversions when mapping parameters
Error Handling
- Introduction
- Run-time errors
- Using error pages
- Using JSPs as error pages
JSP Expressive Language (EL)
- Introduction
- EL Values
- pageContext
- The scope expression
- pageScope
- requestScope
- sessionScope
- The paramExpression
- Working with maps
- Working with lists
- EL operations
- Arithmetic
- Unary
- Comparative
- Choice expressions
Tag Files
- Introduction
- Including tag files
- Passing attributes to a tag file
- The attribute directive
- The doBody tag
- Returning data
- Storing tag files in a JAR
- The tag file TLD
- Using the JAR
JSP Standard Tag Library
- Installing JSTL
- Syntax
- Online documentation
- The core library
- out tag
- if tag
- choose, when and otherwise
- forEach
- forTokens
- import
- import and param
- import and scope
- url
- url and scope
- set and remove
- Setting a variable
- Working with JavaBeans
- catch
- The functions library
- contains
- join and split
- split
- join
- escapeXml
- The xml library
- Loading and parsing a file
- Using XPath
- XPath functions
- out tag
- foreach tag
- transform tag
- param tag
- the if tag
- the choose tag
- set tag
- The fmt library
- the locale and bundle tags
- Creating a bundle in a Properties
- files
- setLocale tag
- setBundle tag
- formatMessage tag
- Using Java classes as bundles
- Dates and numbers
- The sql library