Call : (+91) 968636 4243
Mail : info@EncartaLabs.com
EncartaLabs

Java Web Developer

( Duration: 5 Days )

In Java Web Developer training course, you will learn the fundamentals of Java, including language structures, Object Oriented concepts, and a sampling of tools, and get in-depth coverage of JavaServer Pages (JSP), including working with user data, and architectural considerations such as the use of JavaBeans. You will examine in detail the Java Database Connectivity (JDBC) API (across any RDBMS) and the APIs for XML processing.

By attending Java Web Developer workshop, delegates will learn to:

  • Run and compile Java programs
  • Data types, language constructs, and flow control
  • Classes, objects, and inheritance
  • Use the JavaServer Pages environment to create dynamic pages and work with user data
  • Use JavaBeans in JSPs
  • Manage state in web applications using the sessions and cookies
  • Use JDBC to connect to and modify databases
  • Use XML to transform data for web pages
  • Fundamentals of JSTL and EL
  • Work with Regular Expressions in Java
  • Debug JSP applications

Prior programming experience in at least one object-oriented language such as a .NET language (e.g., C#, VB.NET), Java, C++, or SmallTalk, or significant programming experience in a modern language such as MS Visual Basic.

  • This Java Web Developer class is designed for Anyone who needs to build dynamic web applications using Java and J2EE

COURSE AGENDA

1

Introducing Java and JavaServer Pages

  • Source File Structure
  • In which environments does Java run?
  • What types of programs is Java used to write?
  • Java File Types
  • What Servlets Are
  • What software do I need in order to run JSP applications?
  • What does the J2EE framework include?
  • What happens the first time a JSP file is executed?
  • Directives with <%@ %>
  • Using <% ... %>, <%! ...%>, and <%= some expression %>
  • JSPs: The Inside Out Servlet
  • Embedding Scriptlets with <% %>
  • Java Operators
  • Implicit Objects
  • Primer on Classes, Objects, and Packages
    • Packages
    • Importing a Package
    • Instantiating an Object or Variable
    • Assigning to Primitive Variables
    • Separating Variable Declarations and Assignments
  • Comments
    • !-- HTML Comment --
    • // Single-line Java Comment
    • /* Multi-line Java Comment */
2

The Java Platform

  • A Little History
    • The Original Java: An Internet Language
    • The Java Community Process
  • The Java Editions
3

Java: Conditionals

  • The if Statement
    • if
    • else
    • else if
4

JSP: Processing Form Input

  • Processing Form Inputs with Multiple Parameters
  • Retrieving All Form Parameters
5

JSP: Forwards and Includes

  • The Action
  • Conditional Forwarding
  • A Preprocessed Include
  • Dynamic Includes Using
6

Java: Data, Operators, and Variables

  • Variables in Java
    • Strong Typing in Java
    • Data Types in Java
    • Variable Names
    • Declaring a Variable
  • Value and Reference Types
    • Positioning Variable Declarations in Code
  • Boolean Data Types
    • Boolean Literals
  • Numeric Data Types
    • Numeric Literals
  • Character Data
    • Character Literals
  • Strings
7

JSP: Type Casting Operations on Form Data

  • Number Classes vs. Primitive Numeric Types
  • Converting from a Numeric Object to a Primitive
  • Casting Among Primitive Numeric Types
  • Instance Methods vs. Static (Class) Methods
  • Using the parseXXX() Static Methods to Convert Strings to Primitive Numerics
8

JSP: Exceptions and Basic Form Validation

  • Basic Validation using Exception Handling
    • Try-Catch-Finally Block
    • Exceptions as Objects
  • A Note on Finally
9

JSP: Error Trapping

  • Page Level: The errorPage and isErrorPage Attributes
  • Application Level Trapping: web.xml
10

Java: Control Structures

  • The Switch Statement
    • Statements, Expressions, and Blocks
    • Blocks
    • Blocks and Variable Scope
  • The Tertiary Conditional Operator
  • Loops in Java
    • while Loops
    • do-while Loops
  • Arrays
    • for Loops with Arrays
    • The Structure of a for Loop
  • The break Statement
  • The continue Statement
  • Methods
    • Return Value of a Method
  • Returning from a Method
11

JSP: State Management

12

JSP: Cookies

  • Setting a Cookie
  • Retrieving a Cookie Value
  • Generating Output Based on the Cookie Value
  • Comparing Strings
  • Clearing Cookies
13

JSP: Session

  • Retrieving Session Data
  • Integer Objects, int Primitives, and toString()
  • Converting Strings to ints
  • Setting Session Data with session.setAttribute()
  • Retrieving the Session ID
  • Clearing the Session Variable
14

JSP: Request and Page Attributes

15

Java: Classes and Inheritance

  • Introduction to Object-Oriented Concept
    • Why do we need object-oriented programming?
  • Classes are Templates
    • Members
    • Class Members vs. Object Members
  • Objects are Instantiated from Classes
    • To Instantiate an Object, Call the Class's Constructor
  • Classes Inheritance
  • Relevance for Java Server Pages
    • Creating Classes and Instances of Them
16

Java: Introducing JavaBeans

  • What are JavaBeans?
  • What distinguishes JavaBeans from Java Classes?
  • Serializable and Star Trek
  • Motivation
  • No Argument Constructor
  • Getting and Setting Properties
17

JSP: Integrating JavaBeans

  • Example: Bean Demo
  • What does ID mean?
  • What does the class mean ?
  • Where are JavaBeans stored?
  • The Programming Approach to Reading and Writing to Bean Parameters
  • Scoping Beans
  • The Source for SimpleDataBean
18

JSP: Assigning and Retrieving Bean Properties

  • The Script-Less Approach
  • Even Less Code
  • Updating Bean Properties En Masse
19

Java: Compiling Java Classes

  • Down at the Command Line!
    • Demo: Hello World
    • Demo: Packages in Brief (SimpleDate.java)
    • Demo: Creating and Using a Class in a Package
20

JSP: Exploring Bean Scope and Persistence

  • A Refresher on the Scope of Beans
  • Compare Bean Scope to Intrinsic Object Attributes
21

Java: Introduction JDBC

  • The Seven Steps Carried Out by Database-Driven Applications
  • Why We Declare and Intialize Objects to Null Above the Try...Catch?
  • Variable Scopes in Exception Handling
    • So, why do we initialize the variables to null?
  • Loading the Database Driver
  • Connecting to the Database
  • DSN-Less Connections
  • Assemble the SQL Statement
  • Execute the SQL Statement
  • Display the Results
  • Close the Statement and ResultSet
  • Close the Connection
  • Using context-param's in web.xml
22

JSP: Searching with Form Data

23

JSP: Dynamically Populate Interface

  • Demo: Search for Books by an Author
24

Java: Modifying Data with JDBC

  • Non Query Data Manipulation Operations
  • Using JavaScript to Confirm Form Submissions
    • Demo: Confirm Delete
25

Java: Invoking Stored Procedures

  • What are Stored Procedures?
  • Advantages of Stored Procedures
26

Java: JDBC-Driven JavaBeans

27

Java: Introducing XML

  • What is XML?
  • XML Logical Structure
    • Language Declaration Requirement
    • Required Single Root Element
  • XML Physical Structure
    • Case Sensitivity
    • Required Closing Tags
    • Syntax for "empty elements"
    • Tags must be Nested Properly
    • Attribute Values Must Be Enclosed Properly in Single or Double Quotes
    • XML Comments
    • Character References
    • Why Use Attributes?
  • Applications of XML (and related technologies)
    • Data Interchange Among Applications
    • Writing Applications that Generate Output in Multiple Formats
    • Defining New Markup Languages
    • Roundtrip Data Interchange Between Desktop Applications and the Web
28

Java: XSLT

29

Java: Introducing the XML DOM

  • What is the DOM?
  • The Role Parsers Play with the DOM
  • The DOM Document Class
  • Getting a Reference to the Root Node
  • Methods of the Node Class
    • Processing Text Nodes
    • Processing Standard Nodes and their Child Nodes
    • Returning Output
  • Disadvantages of the DOM
30

Java: Introducing SAX

  • What is SAX ?
  • Using SAX to Parse XML
    • Creating a File URL
    • Getting a Parser
    • Specifying a ContentHandler
    • Specifying an ErrorHandler
    • Parsing the Document
    • Displaying Output and Errors
  • A SAX ContentHandler
    • Creating a ContentHandler: Implement or Extend
  • The Five Most Important ContentHandler Methods
  • Other Methods Specified by ContentHandler
  • Examining an Implementation of ErrorHandler
    • A Word about Creating Classes in a JSP
31

JSP: Introducing Java Standard Tag Library (JSTL) and Expression Language (EL)

  • The JSTL Tag Libraries
  • Expression Language
  • Analysis of the JSP Expression Language
    • Dot Operator Usage to Access Map and Property Values
    • The [ ] Operator
  • Analysis of the Application
    • Registering the Tag Library
    • Creating an Array and Setting it into the Request Collection
    • Accessing the Variable using EL
    • Accessing the Variable using a Core Tag Library Loop and EL
32

Java: Regular Expressions

  • Introducing Regular Expressions
  • Learning Regular Expressions the Fun Way
  • Special Characters for Pattern Matching
  • Escape Sequences for Special Characters
  • Specifying Ranges in Patterns
  • Matching a Specified Number of Occurrences
  • Character-Range Escape Sequences
  • Matching at the Beginning or End of a String with ^ and $
  • The Word-Boundary Pattern Anchors: \b and \B
  • Ignoring Case with the i Modifier
  • Regular Expressions in Action: Form Validation
    • Refresher: Methods and Declarations in JSP
    • Refresher: Importing the Package
  • The matches() Method of java.util.regex.Pattern
    • Validating the Form
33

Intermediate Java: Enums

  • Enum Class Capabilities
34

Intermediate Java: Generics and Generic Collections

  • Example: Generic Aggregator
    • Analysis of the Code
  • Example: Strongly Typed Collection
    • Generic Iterators
35

Intermediate Java: For-Each

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 https://www.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
Notice
X