Instructor-led training
Ajax for Java Developers Training in Smyrna, Georgia
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
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Smyrna, Georgia 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 TrainingPrerequisites
Course Outline
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
innerHTMLor 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
innerHTMLwithout 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
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.