Struts 1.2 Programming Training

We offer private customized training for groups of 3 or more attendees.

Course Description

This three-day course will teach students how to use Java Struts as a framework to develop web applications that follow the Model/View/Controller design pattern. The topics cover the components of Struts that are available from the Jakarta project of the Apache Foundation. The course illustrates what the components provide and use of them.
Course Length: 3 Days
Course Tuition: $1290 (US)


Java Programming, Java Web Programming, or Java2 Enterprise Edition. Java Servlet and JSP programming experience, and a basic understanding of HTML and XML is required.

Course Outline


Struts Overview
What is Struts?
Model 1 Design Pattern
Model 2 / MVC Design Pattern
Implementing MVC with a Framework
The Struts Framework
Basic Struts Components
Struts Documentation
A Struts-Based Application: Logon

Struts in a Simple Web Application
Stars Information Application
List Stars Flow
Display Star Flow
ActionServlet: the Controller
ActionForm: Form State
The execute Method of StarsListAction
The execute Method of StarsDisplayAction
Directing Processing Flow with an ActionForward
Building a View with Tags
Review: Flow through a Typical Struts-Based Application

The Controller
ActionServlet as a Controller
Developer Responsibilities
Lifecycle of an ActionForm
ActionForm Considerations
The reset Method
The validate Method

Action and the Business Model
The execute Method of Action
execute() Method Considerations
Handling an Error
Threading Considerations
Some Best Practices for Action
More Best Practices for Action

The View
Forwarding to a View
Overview of Struts Tags
Struts HTML Tags
Form-Related Tags
Dealing with URLs
Using Error Tags
Displaying Messages
Struts Bean Tags
Struts Logic Tags
Some Struts View Best Practices Internationalization
I18N and L10N
Resource Bundles
Java's MessageFormat Class
Internationalization in Struts
I18N with Struts Tags
I18N with JSTL tags
I18N within Java Code

Advanced Struts Features
Accessing Bean Properties
DynaActionForm: A Configurable Form
Indexed and Mapped Properties in a Form
Using indexed="true"
Preventing Duplicate Form Submits
Using ForwardAction and IncludeAction
Implementing a LookupDispatchAction

Handling Errors
Error Handling Options with Struts
Documenting Errors with ActionMessage
JSP Error Pages
Declarative Java Exception Handling
Logging in Struts

Validator Overview
Validator Requirements
Configuring Validator Rules
Struts Validators
Configuring the Struts Validators
Configuring Form Validation global and formset
Configuring Form Validation form and field
Configuring Form Validation arg
Configuring Form Validation var
Validation with Regular Expressions
ValidatorForm verses ValidatorActionForm
Implementing a Validator Method
Other Validator Implications

Page Composition with Tiles
Tiles Overview
Building a Tiles Template
Basic Tiles Example
Tiles Definitions
Additional Options with Definitions
Placing Definitions in a Configuration File
Using the Tag
Enabling the Tiles Plug-In
Using Tiles

Appendix - Nested Tags
Why Nested Tags?
Using Nested Tags
Parent and Root Tags

Course Directory [training on all levels]

Upcoming Classes
Gain insight and ideas from students with different perspectives and experiences.

Java Programming Uses & Stats

Java Programming is Used For:
Android & IOS Development Software Products Video Games Desktop GUI's
Year Created

Most Commonly Used: 
According to Oracle, three billion devices run on Java.  And, because of its real-world applications, it consistently ranks at the top of the TIOBE Programming Community Index. 

Great Career Choice: 
Some of the fastest-growing salaries in the U.S. in 2018 are for Java developers.  (Glassdoor)  

Android Apps Development:
Developers predominatly use their Java skills in building apps for Google's Android. The Android platform is the number one mobile paltform in the world

It Can Run On Any Platform:
Java can compile on Windows and run the same compiled file on Linux, Windows and Mac.

Great Supporting IDE's:
Over the years, coding in Java has become simpler with the introduction of open source development tools, i.e. Eclipse and NetBeans that use Java capabilities for debugging.  


Uses a Lot of Memory:
Performance can be significantly slower with Java and more memory-consuming than natively compiled languages such as C or C++.

Difficulty in Learning: 
Learning Java can be a bit challenging if you are a beginner.  However, once you get the hang of Object Oriented Programming and a decent grasp of the syntax, you will be well on your way.

Slow Start Up Times:
There is quite a bit of one-time initialization done by JDK classes before compiling as well as loading classes and verification (making sure code doesn't do evil things, all of which takes longer that some other languages such as C. 

Verbose and Complex Code:
Long, over-complicated sentences make code less readable and scannable. Compare to let's say Python, we can see how clear Python code appears: It doesn’t require semicolons; uses “and,” “or,” and “not” as operators instead of Java’s “&&,” “||,” and “!”; and generally has fewer bells and whistles such as parentheses or curly braces.

Commercial License Cost:
Companies have to prepare for the changes that Oracle will institute in 2019 . Today, the current version of Java is free and available for redistribution for general purpose computing. However, If you are a DEVELOPER, Oracle recommends you review the roadmap information for Java SE 8 and beyond and take appropriate action depending on the type of application you develop and your distribution mode.

Java Programming Job Market
Average Salary
Job Count
Top Job Locations

New York City 
San Jose
Washington D.C, 

Complimentary Skills to have along with Java Programming

- If you are an experienced Java developer, learning a complimentary language to Java should come much more naturally.  As an example JetBrains recently created the Kotlin programming language which is officially supported by Google for mobile development.  Kotlin compiles to Java bytecode and runs on the JVM; it's purported to address many of Java's shortcomings...

Interesting Reads Take a class with us and receive a book of your choosing for 50% off MSRP.