Practical Java Programming for WebSphere


   

EXECUTIVE
SUMMARY

Leading iSeries sites across a broad
range of industries have used this
acclaimed training with excellent results.

 
IBM iSeries
In-house
Training
Resources
 
     
Overview   The iSeries, backed by a strong development commitment from IBM, has emerged as a world-class e-server. The programming skills required to stay apace with this development have radically changed as well. WebSphere is an essential part of this new dynamic and a working knowledge of Java is an essential element for iSeries web development success with WebSphere.

Practical Java Programming for WebSphere is a proven, highly effective self-paced training course for learning Java, JDBC, servlet and JSP programming at your site.

The course assumes no prior knowledge of Java, WebSphere or web development and provides a comprehensive introduction to these programming skills. When done, you will have created several functional examples of data-driven web pages and gained a working knowledge of Java.

The training emphasis is on creating working programs to access, display and change data. Unlike other Java courses, there are no hypothetical examples or theoretical discourses. Everything in the training can be put to immediate use by iSeries programming professionals. The course is an excellent introduction to modern, cross-platform programming technologies.

"The course assumes no prior knowledge of Java, WebSphere or web development and provides a comprehensive introduction to these programming skills."
   
    Course Contents Summary
Installation  

Complete instructions to install and configure course files from the CD-ROM, and other required course software, including the sample databases. Detailed step-by-step instructions are provided for different versions of Windows. After completing this chapter, you will be ready to begin development on your PC.

The chapter also shows how to use the customization features of VisualAge for Java so that you can configure the environment to your preferences, and how to add features such as the WebSphere Test Environment to VisualAge for Java to extend its functionality.

     
"Hello World"  

Work with Java projects, Java packages and classes, and code editing features. Create a first Java class and also the Javadoc documentation for it. You'll learn how to use "SmartGuides" to help create Java code and the relationships between projects, packages, classes and methods.

You'll also learn about package naming conventions and Java naming conventions. You'll use VisualAge for Java features to quickly create a class, and learn how to navigate the Java development environment. When done, you will have created and run a class (program) in the Java environment and painlessly created documentation for it.

     

Using JDBC for
Database Access

  Create Java classes to access the database using SQL statements in JDBC. Also learn about Java exceptions, Console I/O and the Debugger. You'll learn how to set the Classpath, how to code and work with Prepared Statements, and how SQL and JDBC errors are reported to your methods.

You also learn how to work with Java import statements and how to identify and work with JDBC driver classes. You will work with the AS/400 JDBC driver or the Sun JDBC-ODBC driver to access the test database on the iSeries or on your PC.
     
Basic HTML
for web forms
  Work with a sample web form on the CD-ROM provided with the course and identify the HTML elements used on the form. All of the important HTML form elements are shown in illustrations and code, along with tips and "best practice" advice for using the elements.

This section also describes how to use HTML tables for formatting your web page displays, and includes an extensive discussion and example of using links in the <a href> tag. It also describes how the <form> tag is used to group HTML form elements together to send them to a servlet or JSP for processing.
     
JavaScript  

Review the JavaScript code in the sample Ship-to HTML web form and understand how form fields are edited at the browser. An illustrated and annotated code sample is described so that you can see exactly how web form fields can be edited and error messages conveyed to the user.

The chapter discusses some of the cross-browser issues you will encounter and how to use JavaScript functions to detect the user's browser. The Netscape FormChek.js file is described, and several functions in it are used in the code sample.

     

Cascading
Style Sheets

  Examine how Cascading Style Sheet files are used with the web form to control the appearance of form elements, and how CSS helps standardize your web forms' appearance. Several web form illustrations and code are shown, along with descriptions of how the CSS features are used in the HTML code.

The CSS element, class and id selectors are described and illustrated so that you will know how to have complete control over CSS features with your HTML code.


     

Using the
WebSphere Test
Environment

  Learn to work with the WebSphere Test Environment to serve HTML files, servlets and JavaServer Pages on your PC. The WTE provides a robust simulation of WebSphere Application Server. You'll learn about the Document Root Directory, how to configure your browser to access the WTE, and serve a sample HTML and JSP file.

You'll learn how to set the Classpath for the WTE, how to start and end the WTE, and how to monitor its activities in the Console. You'll also load and use the sample web page to verify the WTE operation. When testing your JSP file, you'll see how the JSP Execution Monitor is used to track the execution of a JSP.
     
Create and
run servlets
  Create servlets based on the JDBC samples to access a database and display web inquiry pages. Also learn how to configure and work with datasources and connection pools. You'll learn how to throw exceptions in your code, how to retrieve initialization values, and how to pass parameters from an HTML form to a servlet.

You'll see how to put debugging code into a servlet so you can easily track its execution, and you'll work with the Persistent Name Server in the WTE to configure datasources. You'll also learn how to intercept invalid HTML form values and set them to reasonable defaults in your servlet.
     

Create and test
JavaServer Pages

  Code several JavaServer Pages to display and alter data. Work with the JSP Execution Monitor to debug JSPs. Also learn how the WebSphere JSP tags simplify JSP coding. You'll create a "subfile" JSP to display queried data and learn how to work with session variables to pass data from JSP to JSP.

You'll learn how to work with directives, scriptlets, declarations and expressions, and convert your JDBC and servlet examples to the equivalent JSP samples. You'll also test an HTML form and JSP that inserts new rows into a table, then create JSPs to update and delete table data.
     
Appendixes   Appendixes for installing IBM Client Access Express, working with iSeries Netserver, obtain VisualAge for Java 4.0 from IBM (no charge), install Microsoft Data Access Components, and upload test database to the iSeries.

"Learn at your own pace as you create several functional examples of data-driven web pages and gain a working knowledge of Java programming"

  Upon completion of Practical Java Programming for WebSphere you will:
Skills Acquired  

bullet point understand how to work with Java source code, packages and projects

bullet point work with the JDBC driver classes to run SQL statements against any database

bullet point know how to install and configure VisualAge for Java for WebSphere programming

bullet point configure and work with datasources and connection pools

bullet point create classes, methods and fields using "SmartGuides"

bullet point easily create JavaDoc documentation in your Java source code

bullet point work with the JDBC/ODBC bridge driver to develop and test database applications on your PC

bullet point understand how Java works with exceptions and be able to write code to effectively deal with errors

bullet point harness the power of JavaServer Pages (JSP) with ease

bullet point create simple prompting code to get input from the Console and send output to the Console

bullet point use SQL Prepared Statements to make your queries run faster

bullet point start, control and understand the built-in WTE

bullet point create and serve simple HTML documents from the WTE to verify its operation

bullet point use the Servlet SmartGuide to quickly create a servlet, then test it using the WTE

bullet point include JDBC code in a servlet to access and display your database files

bullet point work with HTML table tags to create good looking web pages to display your data

bullet point create a JavaServer Page to display data and take the place of your servlet

bullet point use the WebSphere JSP Tags to simplify database access in your JSP

bullet point create a multiple page JSP application using the request and session objects

     
  Course Requirements
Equipment
Materials and
Software
  A PC with a Pentium 233 processor or better with at least 128MB of RAM and about 500MB of available disk space is required. Windows 98, Windows ME, Windows NT 4.0, Windows 2000, or Windows XP may be used. You can use a stand-alone copy of VisualAge for Java or use the version that is packaged with the new WebSphere Development Tools for iSeries. The training uses the Professional Edition of VisualAge for Java, which contains all the tools you need to create full-featured WebSphere applications.

There is no need to have WebSphere Application Server (WAS) installed on your AS/400. VisualAge for Java contains a built-in WebSphere Test Environment that mimics WAS, so you can develop and test everything on your PC. If you do have WAS running on your AS/400, you can export your code and run it there. As you develop your code, you can use the AS/400 Toolbox for Java JDBC driver to access the AS/400 database, or you can use a local database on your PC. All of the code and examples are oriented towards AS/400 work, and will run, unchanged, when exported from your PC to your AS/400.
     
  Course Materials and Software

Training Package

  Practical Java Programming for WebSphere is a 40-hour training course that comes with a 500+ page manual and a CD containing: All the training source code included in the accompanying manual, graphic files for use in creating the sample projects, additional utilities and source code used in the projects in the manual, customized index.html file with links to important references and other products on the Web. Internet Software Bundle includes: Microsoft Internet Explorer 6, Netscape 6.2.1, Netscape Communicator 4.78, Opera 6 for Windows, Adobe Acrobat Reader 5 and HotDog Pro 6.5 HTML Editor.
     
  Frequently Asked Questions

Important Points

 

Why does the course use VisualAge for Java?

For two reasons: VisualAge for Java is currently the best development tool to illustrate the Java fundamentals taught in the course; and IBM provides it to iSeries customers in the WebSphere Development Tools for iSeries shipped with OS/400 upgrades.

Will the skills gained from this training be transferable to the new WebSphere Studio Application Developer?

Yes. You will be able to immediately use all of the skills developed with Practical Java Programming for WebSphere. In short, you can use the tools you have today to learn the skills you will need tomorrow.

What programming proficiency level is necessary to successfully complete the course?

The course assumes that you are an experienced RPG or COBOL programmer. You do not need to know any Java or web programming before starting, as those skills are developed in the course.

Do I need access to the AS/400 to take this training?

No. You can complete all the training using only your PC. However, if you have access to an AS/400, you can upload a test file to it. You can also use a test PC database file to simulate access to the AS/400. You do not need WebSphere installed on your AS/400 since you can do all of your web testing on your PC using the WebSphere Test Environment.

How long does the course take?

The course can be completed in a week. If you already have some Java or web programming experience you will be able to complete the course quicker.

back

 

back