Skip to main content


developerWorks  >  Web development | Java technology  >

Build Web apps with ThinWire and Java code, Part 4: Write a template class

Learn how to write a template class that defines a common Web page layout.

developerWorks

Level: Intermediate

Professor Richard G Baldwin (baldwin@dickbaldwin.com), Professor of Computer Science, Austin Community College

13 Mar 2007

Register now or sign in using your IBM ID and password.

ThinWire is an open source development framework that lets you build Web applications that look and feel like desktop applications. This five-part series explores how to develop rich Web applications using ThinWire and Java™ programming. In this installation, learn how to write a template class that defines one of the most commonly used Web page layouts.

In this tutorial

This is another lesson in a continuing series designed to teach you how to develop rich Web applications using ThinWire and Java programming. In Part 4, write a template class that you can use to get your first ThinWire Web page up and running with as little effort as possible.

The ThinWire development environment allows you to use Java programming exclusively to develop Web applications (see Resources in the tutorial for more information). You'll write all of the code for a ThinWire Web app in Java code just as though it is a standalone, event-driven program designed to run on the desktop. You then compile it into a Web application with the ThinWire framework using the standard Sun javac compiler (no special compiler provided by another vendor required).


Objectives

Write a template class that you can use to get your first ThinWire Web page up and running with as little effort as possible.

Prerequisites

You will need:


System requirements

First, download and install the ThinWire framework (see Downloads in the tutorial).

Second, you will need access to a servlet container for testing your Web applications. The easiest way to do this is to install a servlet container as a localhost server (see Downloads in the tutorial and also see "Getting Started with Jakarta Tomcat, Servlets, and JSP" in Resources in the tutorial).

Third, download Sun's Java Development Kit (see Downloads in the tutorial).



Duration

1 hour





Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


New site feature

Check out our new article design and features. Tell us what you think.


More in this series:
Build Web apps with ThinWire and Java code