Skip to main content

Instructor-led training

Ajax for Java Developers Training in Indianapolis, Indiana

This is a 4-day course that covers the emerging Ajax technology, with a focus on developing Ajax applications using Java on the server side.

What you'll learn

This is a 4-day course that covers the emerging Ajax technology, with a focus on developing Ajax applications using Java on the server side. The course starts with a fairly comprehensive coverage of basic JavaScript. The coverage includes some of the techniques for creating modules and doing Object-Oriented style programming in JavaScript, because Ajax uses JavaScript so heavily, and it's important that developers have some idea of how to write good JavaScript. This is not a thorough coverage of JavaScript - that is beyond the scope of the course. Students have enough so that they can write Ajax programs using JavaScript, and have some good foundations for doing it well. The course moves on to basic server side techniques for handling Ajax requests. Starting with a simple servlet, and then moving on to a Servlet/JSP combination. Then we go back to the client side to cover some of the major libraries that are in use today. Several libraries are represented, but your favorite may not be there due to time constraints. Detailed coverage of Dojo is not included because it's only just recently stabilized. The course then moves on to more advanced techniques using JSON, XML, Direct Web Remoting, and JSF to create Ajax based Web applications. This takes the student to the next level in writing Ajax applications. Finally some general design and security issues are covered.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Indianapolis, Indiana or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

Basic knowledge of HTML and JavaScript and practical Java and Servlet/JSP programming experience.

Course Outline

Overview of Ajax
What are Rich Internet Applications?
What is Ajax?
Ajax, JavaScript, and DHTML
How Ajax Works
Overview of Ajax Technologies
 
Basics of JavaScript for Browsers
JavaScript and DHTML Overview
Using JavaScript in an HTML Page
Basic JavaScript Programming
Functions in JavaScript     
Debugging JavaScript
Accessing HTML Elements and Modifying with innerHTML
 
XMLHttpRequest
The XMLHttpRequest Object
Using XMLHttpRequest
Working with Browser Differences
Your First Ajax Application
Using Ajax Data to Modify the Page
 
Using Servlets and JSP with Ajax
Servlet/JSP Overview
Handling Ajax Requests
Returning Data to Ajax Requests
Using JSP pages to generate Ajax data
 
More JavaScript for Ajax
Browser Events
Using Ajax with Browser Events
Using Built-in Objects
Objects and Arrays in JavaScript
Objects as Function Arguments
Defining Classes in JavaScript
Defining Modules and Namespaces in JavaScript
 
Client-Side Ajax Frameworks
Overview - Prototype, Dojo, script.aculo.us and others
Prototype Overview
Using Prototype ($(), Ajax.Request)
script.aculo.us Overview
Using script.aculo.us Ajax autocompleter
Servlet/JSP (server-side) Generation of Data
Dojo Toolkit Overview
YUI (Yahoo User Interface Toolkit) Overview
Google Maps and Google Ajax Search API Overview
 
Cascading Style Sheets (CSS)
CSS Overview
Defining and Using Styles and Style Sheets
Using CSS to Customize Ajax Data Display
Session 8: JavaScript Object Notation (JSON)
JSON Overview
JSON Data Structure
Objects and Arrays in JSON
Creating/Working with JSON on the Server using Java
Working with JSON in the browser
Other JSON Tools Overview
 
XML and Ajax
XML Overview
XML - The x in Ajax
Working with XML on the browser
Generating XML data on the server with Java
Using HTML vs Using XML vs Using JSON
 
Direct Web Remoting (DWR
Overview - Invoking Java via Ajax
DWR Architecture
Invoking Java Functions From the Browser
Registering Callbacks
Additional Capabilities
Overview of other technologies (JSON-RPC, Google Web Toolkit - GWT)
 
Ajax and JavaServer Faces (JSF)
JSF Overview
JSF and Ajax
Demo Lab: Using Ajax with JSF
 
Patterns and Best Practices
JavaScript Best Practices
State of Ajax
Ajax Design Patterns
Ajax Security Issues
Other Ajax Issues
Recap of Ajax Technologies and Their Uses
Future Directions

What makes Ajax with a Java back end hard to master

The difficulty is that one feature spans two runtimes. The browser sends an asynchronous request and a Java servlet or JSP answers it. A callback then updates part of the page. A bug can sit in the JavaScript, in the server response, or in the data format between them.

The syllabus builds up the layers in order:

  • JavaScript first. It covers functions, debugging, and innerHTML, then objects and arrays, defining classes, and modules and namespaces. The course says it is not a full JavaScript course. It aims to give enough to write Ajax programs and a foundation for writing them well. Java developers often assume JavaScript objects and scope behave like Java's, and this is where that assumption gets corrected.
  • XMLHttpRequest. Topics include using the object, building a first Ajax application, using the returned data to change the page, and working with browser differences.
  • Server side. It starts with a plain servlet, then a Servlet/JSP combination that generates the data returned to Ajax requests.
  • Libraries, CSS and data formats. Prototype, script.aculo.us, Dojo, YUI and the Google Ajax APIs are surveyed, followed by CSS for customizing the display. JSON and XML come next, including a comparison of HTML, XML and JSON as response formats.
  • Higher-level approaches. Direct Web Remoting (DWR) invokes Java from the browser and registers callbacks. A JSF demo lab and a closing block on patterns and security follow.

A common misconception is that a library removes the need to understand the request cycle. Libraries wrap XMLHttpRequest, but asynchronous timing, response formats and security still belong to the developer.

Who it suits and what to take around it

The course is general level. It suits Java developers with Servlet/JSP experience who need to add asynchronous behavior to existing web applications. Basic HTML and JavaScript knowledge is expected. Training managers can use the prerequisites as a screen. Team members who have not written servlets or JSPs will spend the server-side sessions catching up.

For the Java side, build servlet and JSP experience on real projects first. This course does not teach those basics, only how to apply them to Ajax requests.

Teams that develop in Rational Application Developer may prefer the tool-specific version, AJAX for Java Developers Using Rational Application Developer (RAD). It covers the same subject area for that development environment. The Ajax courses and learning guide shows the wider set of options.

Organizations whose projects use different Java or library versions can ask about customized private training. Request a training proposal to discuss it.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • Form validation without a page reload. A team might maintain a Servlet/JSP application where users submit a long form and only then learn that a username is taken. The XMLHttpRequest, servlet response handling and browser event topics map directly onto checking the field as the user leaves it. The DOM update would use innerHTML or element access.
  • Returning structured data to a dynamic table. A developer might replace server-rendered HTML fragments with JSON built in Java and parsed in the browser. The JSON sessions and the comparison of HTML, XML and JSON help decide which format fits. CSS then controls how the returned data is displayed.
  • Exposing existing Java services to the page. A team with business logic in Java classes might call it from the browser through DWR. The DWR architecture, invoking Java functions from the browser and registering callbacks apply here. The security and design-pattern sessions help review what is being exposed.

AI coding assistants for Ajax and Java work

Where they help. AI coding assistants can draft boilerplate such as an XMLHttpRequest wrapper, a servlet that writes JSON, or a JSP fragment. They can also explain unfamiliar JavaScript or suggest test inputs. These are useful for routine pieces once you understand the request cycle.

Where they fail.

  • They often mix idioms from different library generations. Calls for Prototype's Ajax.Request, DWR callbacks or an autocompleter may not match the library version in your project.
  • They can ignore asynchronous ordering. Code may read a response before it arrives, or let overlapping requests overwrite each other.
  • They may skip the browser differences the syllabus covers.
  • Generated Java may build JSON or XML by string concatenation without escaping.
  • Inserting returned data through innerHTML without sanitizing can open script-injection problems. The course's security session addresses these areas.

How to verify. Inspect each request and response in the browser's developer tools. Test the result in every browser your users run. Validate server output with a JSON or XML parser. Review every place untrusted data reaches the page or a Java method exposed to the browser.

Frequently asked questions

What level is this course and what do I need beforehand?

It is general level. You should know basic HTML and JavaScript and have practical Java and Servlet/JSP programming experience.

Does it teach JavaScript from scratch?

It covers JavaScript basics, functions, debugging, objects, classes and modules, but the course states it is not a thorough JavaScript course. It aims to give enough to write Ajax programs with a good foundation.

Which libraries and approaches are covered?

The syllabus includes Prototype, script.aculo.us, overviews of the Dojo Toolkit, YUI and the Google Maps and Ajax Search APIs, plus JSON, XML, Direct Web Remoting and JSF. The course notes that detailed Dojo coverage is not included and that your preferred library may not appear.

Can this be delivered privately onsite or online?

Yes. HSG delivers private training for organizations at the client's location or live online.

Can the content be customized?

Private training can be customized, including tailoring to the technology versions your organization uses. Use the training proposal request to describe your environment.

Training locations

Ajax for Java Developers training across the U.S. and beyond.

We provide private Ajax for Java Developers training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Ajax for Java Developers training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.