Web Application Development with Servlets, JSP, and JSTL Using JBoss - 28 Hour Online Class or 4 Day Classroom Workshop
Approximately 50% lecture and 50% hands-on workshops, this intensive course for Java developers covers coding and deploying web applications composed of Servlets and JavaServer Pages (JSPs) on the JBOSS application server platform. Introduces JBOSS including installing, configuring, starting, stopping and securing JBOSS; covers an overview of Servlets; deploying web applications in JBOSS 4; application Packaging including deployment descriptors, JAR files, web applications, ant and the JBOSS Console; HTTP Servlets using JBOSS; an overview of JSPs and JSP Directives, combining files in JSPs and using Java Beans with JSPs; building web applications using Servlets and JSPs in JBOSS; a JSTL overview and JSTL Tag summary; Expression Language (EL); the Core Tags; Formatting and Internationalization (I18n) Tags; XML Tags and SQL Tags; JSTL Functions; talking to HTTP Clients (state, sessions and cookies); error handling; application life cycle Events and Event Listeners; Servlet Filters; Custom Tag Libraries and JSTL Custom Tags.
Class Description:
This in-depth and comprehensive training will teach you how to build web applications with Java servlets and JavaServer Pages (JSP), how to include dynamic content in web pages using the JSP Standard Tag Library (JSTL) and how to package and deploy web applications on the JBoss application server. The format is approximately 50% lecture and 50% hands-on workshops.This is complete and detailed training on coding and deploying web applications consisting of servlets and JSPs on the JBoss application server platform.You will learn servlet architecture, handling requests, coding HTTP servlets, advanced coding techniques, how to use Filters, and how to use event listeners. You will learn how to construct a JSP, how to use JSP directives, and how to write custom tags using Java. You will also learn how to use JSTL, the industry standard tool for accessing dynamic content in JSPs.The training is specifically designed for use with the JBoss application server, a full-featured, state of the art industrial strength J2EE server.Background: The Java 2 Enterprise Edition (J2EE) is a comprehensive, sophisticated technology for creating enterprise applications. An important part of J2EE is the capability to create powerful web-based front-end applications. Servlets and JSPs are two major building blocks of web applications.A servlet is a Java component for receiving and redirecting or forwarding web-based requests. A JSP lets you respond to a request with a dynamic web page. JSTL makes it easy for a JSP to use dynamically generated data of ind eterminate size.Audience: This course is intended for Java developers interested in using Java servlets, JSP, and JSTL to build and deploy web applications using JBoss 4.x application server.Prerequisites: Students must have hands-on experience with the Java programming language. Familiarity with web programming, XML, and HTML is helpful, but not essential. Knowledge of XML and XPath are required to benefit from the discussioh of the JSTL XML tags, and knowledge of SQL is required to benefit from the discussion of JSTL SQL tags. |
Objectives: This course will teach you:
|
Topic Summary
- Introduction to JBoss
- JBoss Overview and Concepts
- Installing and Configuring JBoss
- Getting the Software
- Installing JBoss
- Configuring JBoss
- Creating a JDBC datasource in JBoss
- Starting and Stopping JBoss
- Securing JBoss
- Servlet Basics
- A Hello World Servlet
- Invoking the Servlet
- The Servlet API
- The init( ) Method
- ServletRequest
- Getting Content
- Query Parameters
- ServletResponse
- Deploying Web Applications in JBoss 4
- Application Packaging
- Deployment descriptors
- JAR Files
- Web Applications
- Using ant to Package and Deploy Servlet Web Applications
- Using JBoss Console to Monitor Servlets Collect Web-tier Statistics
- HTTP Servlets Using JBoss
- HTTP Review
- The HttpServlet Class
- HTTP Request & Response
- HTTP Headers
- JSP Basics
- Predefined Variables
- JSP Expressions
- Scriptlets
- Declarations
- If JSP Has Errors
- JSP Directives
- Types of Directives
- The page Directive
- Combining Files in JSPs
- Translation-Time Inclusion
- Request-Time Inclusion
- Using JavaBeans with JSPs
- Bean Requirements
- Using Beans in JSPs
- Using Beans in Servlets
- Building Web Applications with Servlets and JSPs Using JBoss
- Dispatching Requests
- Forwarding
- A Complete Example
- Request Parameters
- Named Attributes
- Redirection
- Using Redirection
- Redirection vs Dispatch
- Redirection & Relative URLs
- JSTL Basics
- Benefits of JSTL
- Installation of JSTL
- JSTL Basic Syntax
- JSTL Tag Summary
- JSTL Tag Libraries
- Core
- Formatting and I18n
- XML
- SQL
- Functions
- Declarations
- Expression Language
- Expression Language (EL): Basic Syntax
- Expression Language with Java Objects
- Expression Language: Literals and Variables
- Expression Language (EL): Prevent Variable Evaluation
- Scope in Web Applications
- Scope: Variables and Beans
- Variable Type Conversion
- JSTL Implicit Variables
- EL and Scriptlets
- EL Operators
- Core Tags - Part A
- Variable Manipulation
- Iteration - c:forEach, c:forTokens
- Flow Control - c:if, c:choose
- Exception Handling - c:catch
- Core Tags: Part B
- URL management - c:import, c:url, c:redirect
- Formatting and Internationalization (I18n) Tags
- Setting Locale - fmt:setLocale
- Localization / Resource Bundles - fmt:bundle, fmt:setBundle
- Using fmt:message
- Formatting Numbers and Dates
- Number and Date Parsing
- Time Zones - fmt:timeZone, fmt:setTimeZone
- XML Tags
- Parsing - x:parse
- Variable Assignment - x:set
- Converting a node to a String - x:out
- Node Selection & Testing - x:if, x:choose
- Iteration - x:forEach
- Transformation - x:transform
- SQL Tags
- Establishing a Data Source - sql:setDataSource
- Queries - sql:query
- Updates - sql:update
- Parameters - sql:dateParam
- JSTL Functions
- Custom Functions: Java Code, TLD, JSP Usage
- Talking to HTTP Clients
- Maintaining state
- HTTP Session
- Session Life Cycle
- Session Properties
- Using Session Data
- Using Cookies
- Sessions vs. Cookies
- Error Handling
- Application Life Cycle Events
- Application Event Listeners
- ServletContext Events
- Session Events
- ServletRequest Events
- Required Deployment Declarations
- Servlet Filters Basics
- Filter Benefits
- Filter Methods
- FilterChain
- Required Deployment Declarations
- Filters and RequestDispatcher
- Custom Tag Libraries (Java)
- Basics
- Advanced Features
- Tag Bodies
- Handling Exceptions
- JSTL Custom Tags
- Tag Files
- JSP Snippet to Invoke
- Tag File Directives
- tag Attributes - body-content, tagdependent, dynamic-attributes
- Tag - dyna.tag
- Attributes of attribute Directive
- The variable Directive
- Attributes of variable Directive
- Actions - jsp:invoke

