Certification courseware and training course guide books
 
Returning Customers
click here to log in.
 
Shopping Cart
Your Cart is Empty
View Cart
  
 
 
 
Print Courseware
Oracle
ITIL Accredited Courseware Training & Testing Center
Microsoft
Internet, Web, Java, XML
Professional Certification
Microsoft Certification
Oracle Certification
ITIL Certification
wl900-ver2.0
wl901-ver2.0
IC3 Certification

wl910-ver2.0

Introduction to JavaServer Pages (3 days)

Description

This courseware training guide book will teach you the Java and system design skills necessary to create powerful, database-driven, cross-platform Web applications using JavaServer Pages (JSP).

Suggested Prerequisites

• Extensive programming experience using JavaScript, VBScript, Perl, or C++.
• Thorough knowledge of HTML

Next Course

• Integrating JSP and XML
• Intermediate Java 2 Programming

Objectives

• Understand the role of Java in Web development
• Learn key object-oriented concepts used by JSP
• Understand different JSP engines
• Learn JSP syntax and structure
• Work with cookies and session management
• Handle form data with JSP
• Integrate JSP with database solutions
• Debug JSP

Course Outline

Introducing Java and JavaServer Pages • What is Java? • Goals for this course: • In Which Environments does Java Run? • What Types of Programs is Java Used to Write? • Java File Types • Whats are Servlets • Adding Servlet/JSP Functionality to Your Web Server • An Example: Examining a Simple JSP that Uses Directives and Expressions: simpledate.jsp • Directives with [Error processing dynamic tag @ : Missing '=' before method name. Example: [Error processing dynamic tag methodName() : Unknown method methodName()]] • Expressions with [Error processing dynamic tag : Missing left parenthesis '('. Example: [Error processing dynamic tag methodName() : Unknown method methodName()]] • Examining a JSP that Uses Scriptlets: simplefor.jsp • Embedding Scriptlets with [Error processing dynamic tag : Missing '=' before method name. Example: [Error processing dynamic tag methodName() : Unknown method methodName()]] • Java Operators • Implicit Objects • Primer on Classes, Objects, and Packages • Comments • Lab: Completing a JSP that Generates a Formatted Date

Including Content • Include Directive • Lab: Completing a modular JSP that includes a Time Stamp

Conditionals • An example of Implementing a Conditional : ifdemo.jsp • An example of Implementing a Conditional: ifdemo2.jsp

Processing Form Input • The Request Object: simplegetform.html and simple getresp onse.jsp • Lab: Processing a Form Submission • Combining the Form and the Processing Code Together • Lab: Combining your Form and Processing Code into a Single File • Processing Form Inputs With Multiple Parameters • req.getParameterValues() • Retrieving All Form Parameters • req.getParameterNames() • Lab: Processing Multiple Form Values

Type Casting Operations on Form Data • Number Classes versus Primitive Numeric Types • Converting from a Numeric Object to a Primitive • Casting Among Primitive Numeric Types • Instance Methods versus Static (Class) Methods • Using the parse() Static Methods to Convert Strings to Primitive Numerics • Example: Totaling a Parkas Order from the User • Lab: Totaling a User’s Order

Code Level Basic Validation • Basic Validation by Exception Handling • try-catch • finally • Lab: Handling Basic Validation using Exception Handling

Error Trapping • Page Level: The errorPage page directive • isErrorPage Attribute • Lab: Handling Basic Validation using Error Pages • Application Level Trapping: web.xml • Setting Error Pages by Using web.xml • Lab: Trapping 500 Errors

• State Management • Cookies • Cookies Example • Setting a Cookie • Retrieving a Cookie Value • Generating Output Based on the Cookie Value • Clearing Cookies • Lab: Setting Persistent User Preferences Using Cookies

Session Variables • Retrieving the session data: session.getAttribute() • Casting via the () Operator • Converting Strings to integers: Integer.parseInt() • Setting the Sesion data: session.setAttribute() • Retrieving the Session id: session.getId() • Clearing the Session Variables with session.invalidate() • Lab: Working with the Session Object

Reading and Writing Files with java.io • Byte Streams vs. Character Streams • Reading Text Files • Writing Text Files • Example Feedback Log: feedbackform.html and savefeedback.jsp • Retrieving the Real Path with getRealPath() • Exception Handling with try-catch(move out of here, separate, and configure for a separate lab) • Platform-Neutral Newlines with bw.newLine(); • Labs: Saving Orders to a File

Parsing Text Using StringTokenizer • HTML Primer: Tables • Tokenizing Strings: java.lang.StringBuffer and java.util.StringTokenizer • Working with the File object: java.io.File • Serializing the File to a StringBuffer • Converting the StringBuffer to a String and Tokenizing It • Generating the Rows of the Table • Labs: Parsing the Orders Log Using StringTokenizer

Sending Emails from your JSPs • Installing JARs on Your Server • Labs: Implementing the Jakarta TagLibrary mailer application • Generating an Email via the JSMTP Component • Lab: Implementing the JSMTP Component

Processing File Uploads • Example: Processing a File Upload • Configuring the
tag for Uploads • Inserting the File Upload Fields • Examining the Upload Handling JSP • Lab: Building a Mailing Job Application Form

Introducing JDBC • About the Database for this Class • Generating a List of Clients from the Database • The Seven Steps Carried Out by Database-Driven Applications • Loading the Database Driver • Connecting to the Database • Assemble the SQL Statement • Execute the SQL Statement • Display the Results • Close the Statement and ResultSet • Close the Connection • Displaying the Client Information as a Table

Working with ResultSetMetaData • Lab: Using JDBC to query a database and display the results

Using Form Data to Retrieve Records • Forwarding from a JSP • Using Partially Entered Form Data to Retrieve Records • Using the LIKE clause • Lab: Querying tables based on form data

Databinding to a UI: Dynamically Populated Drop Down List • Lab: Completing a Record Insertion Applicaton • Lab: Updating a Record in the Database • Using JavaScript to Confirm Form Submissions • Lab: Completing a Record Deletion Application

Transactions and Thread Synchronization • Transactions • Thread Synchronization • Lab: Implementing Transactions and Thread Synchronization

Invoking Stored Procedures • What are Stored Procedures? • Advantages of Stored Procedures • Queries in Microsoft Access • Calling a Stored Procedure from JSP • Lab: Invoking a Stored Procedure • Passing Parameters to a Stored Procedure • Lab: Passing Parameters to a Stored Procedure

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 • Methods and Declarations in JSP • Importing the Package • The matches() Method of java.util.regex.Pattern • Validating the Form • Lab: Completing a Form Validation Application • Lab: Validating a More Complex Form

Introducing JavaBeans • What are JavaBeans? • What Distinguishes JavaBeans from Java Classes? • Examining our First Bean • Serializable and Star Trek • Motivation • No Argument Constructor • Getting and Setting Properties

Integrating JavaBeans with JSP • What does id mean ? • What does the class mean ? • Where are JavaBeans stored ? • The Object Oriented approach to reading and writing to bean parameters • Scoping Your Beans • The Source for DataBean • Labs: Using a JavaBean within a JSP

Assigning Parameters to Bean Properties • The tagged approach to setting properties: • Labs: Loading Bean Parameters using jsp:setProperty • Lab: Compiling a JavaBean and Updating its Properties En Masse using • Lab: Creating a Hit Counter Bean

Scoping Beans • A Refresher on the Scope of your Beans • Lab: Exploring Bean Persistence

JavaBean Serialization • Labs: Serializing, Saving, and Retrieving a Bean

JDBC-Driven JavaBeans • Labs: Implementing a JDBC-Driven JavaBean • An Analysis of JDBCBean

JSTL • 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 • Database Access with SQL Tags • Analysis of the code • Lab: JSTL and Databases

Introducing XML • Overview • The Development of XML • An XML Example • XML and Browser Compatibility • Microsoft and XML Extensions

Examining an XML Application • The Components of an XML Application

Server-Side XML • Electronic Data Interchange (EDI) • Write Once, View Anywhere • Transforming XML via Tag Libraries • Lab: Using Tag Libraries to Transform XML to HTML • The Java API for XML Processing (JAXP) • XSLT with Core Java Classes • Lab: XSLT using Core XML Classes

Appendix A: Creating an ODBC DSN Appendix B: An Overview of SQL • Data Types in SQL • Creating a Table in SQL • Inserting a Row into the Table in SQL • Inserting a Partial Row (or Fields in a Different Order) in SQL • Retrieving Information from the Database via SELECT • Editing Records in the Database with the UPDATE Statement • Removing Records from the Database with the DELETE Statement • Appendix C: Recommended Resources

Java courseware, training materials, course books, instructor training guides, student guide books, workshop exercises, certification exam objectives
Introduction to JavaServer Pages
 
Price: $75.00 – $85.00
  2.0  
  409