 | Level: Intermediate Michael Galpin (mike.sr@gmail.com), Developer, Adomo, Inc.
08 May 2007 Asynchronous Java™Script + XML (Ajax)-enabled Web
applications have taken the software development world by storm. Some of the most
notable ones have been built by Google. This
two-part tutorial series
shows you how the Google Web Toolkit (GWT) and Apache Geronimo can help you rapidly
build sophisticated Ajax Web applications—without having to write any
JavaServer Pages (JSP) components, servlets, or JavaScript.
Objectives - Learn how to install GWT.
- Get familiar with GWT's command-line tools.
- Perform some programmatic UI development using GWT's widgets.
- Create an Ajax-enabled service called by your Web application.
- Learn how to build and deploy an application using Geronimo.
Prerequisites
This tutorial is about building a Java Web application, but you'll only need to
understand the basics of Java servlets. GWT leverages many ideas common to other
technologies, such as layout management, event systems, and remote procedural
calls (RPCs), so prior exposure to these ideas makes it easy to master GWT.
You'll also work with the Geronimo Console, HTML, and cascading style sheets
(CSS), so some familiarity with these tools is helpful.
System requirements
You need the following software to set up your development environment before
getting started:
-
Geronimo 2.0 with Tomcat
— The sample Web application in this tutorial was built using Geronimo
with Tomcat, but it should also work with Geronimo with Jetty, because
everything is standard Java Platform, Enterprise Edition (Java EE). This
tutorial uses Geronimo 2.0 (M3) but should work with older versions of
Geronimo as well.
-
Java 5 or Java 6
— The sample Web application uses generics and annotations. It was
developed using Java 6, but also tested against Java 5.
-
Apache
Jakarta implementation of JSTL 1.1
— Geronimo 1.1 is a certified J2EE 1.4 implementation, so you need to
use JSTL 1.1.
-
Google Web Toolkit
— This tutorial is all about the GWT; download GWT 1.3.3 for this
tutorial.
-
Eclipse
— The sample Web application is built using Eclipse, as you'll see
from the screen captures. GWT includes a convenient command-line tool for
creating a skeleton Eclipse project. It's not hard to build GWT applications
without Eclipse, but Eclipse provides a great debugger to debug your GWT
application.
You also need to install GWT following the instructions in the tutorial. To view the demos included in this tutorial, JavaScript must be enabled in your browser and Macromedia Flash Player 6 or higher must be installed. You can download the latest Flash Player at http://www.macromedia.com/go/getflashplayer/.
Duration
Under 2 hours
Formats html, pdf
|  | |  |