Call : (+91) 99 8080 3767
Mail : info@EncartaLabs.com
EncartaLabs

Servlet and JSP Programming with JSTL and Spring MVC

( Duration: 5 Days )

The Servlet and JSP Programming with JSTL and Spring MVC training course is designed to allow software developers to become productive using Servlets and JavaServer Pages (JSP), the foundation of Web application development in J2EE. You will learn to write, package and deploy Web applications to a production WebSphere environment.

By attending Servlet and JSP Programming with JSTL and Spring MVC workshop, delegates will learn to:

  • Describe the fundamental principles of the J2EE Web Container in WebSphere
  • Employ the Servlet API to produce code to meet any web development requirement
  • Manage sessions across an HTTP connection
  • Apply the fundamentals of JavaServer Pages
  • Build and apply custom JSP tags
  • Apply Spring MVC to a web based solution

  • Understand the fundamentals of Object-Oriented Programming
  • Understand the language fundamentals and core APIs of the Java 2 Standard Edition (J2SE)

This Servlet and JSP Programming with JSTL and Spring MVC class is suitable for:

  • Application Developers
  • Java Programmers
  • Client Server Programmers
  • Software Developers

COURSE AGENDA

1

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
2

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
3

ServletContext and SrvletConfig

  • ServletContext interface
  • Initialization parameters
  • Scope of a ServletContext interface
  • Context attributes
  • Multiple hosts and servlet contexts
  • ServletConfig
4

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
5

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
6

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
7

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
8

Wrappers

  • History
  • Introduction
9

Filters

  • Definition
  • Filtering components
  • Basic procedure
  • Filter life-cycle
  • Wrapping requests and responses
  • Filter environment
  • Filter mapping in web.xml
  • Filters and the RequestDispatcher
10

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
11

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
12

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
13

Error Handling

  • Introduction
  • Run-time errors
  • Using error pages
  • Using JSPs as error pages
14

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
15

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
16

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
17

Custom Tags

  • Introduction
  • Tag handlers prior to v 2.0
    • doStart tag
    • JSP
    • Creating attributes
  • Processing body data
  • Creating the TLD file
  • Creating the TLD file - adding tags
  • The body-content tag
  • A complete TLD file - v 2.0
  • A complete TLD file - v 1.2
  • Discovering TLD files
  • Using TLD files
  • Java Class
18

Spring MVC

  • Introduction to Spring MVC
  • Configuring the Spring MVC Dispatcher Servlet
  • Controllers
  • Handler mappings
  • Views and view resolvers
  • Exception handling
  • Annotations for configuring controllers

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting http://encartalabs.com/course-catalogue-all.php

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.

Top