Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Build Web apps with ThinWire and Java code, Part 5: Page switching

Separate your ThinWire and Java Web site into multiple pages with easy user access.

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

Richard Baldwin is a college professor (at Austin Community College in Austin, Texas) and private consultant whose primary focus is a combination of Java, C#, and XML programmin. With 32 years of industry experience and 12 years of teaching experience, he has concentrated on teaching a full load of Java and OOP programming classes since 1997.

Richard has participated in numerous consulting projects and frequently provides onsite training at the high-tech companies located in and around Austin. He is the author of Baldwin's Programming Tutorials, which have gained a worldwide following among experienced and aspiring programmers.

In addition to his programming expertise, Richard has many years of practical experience in Digital Signal Processing (DSP). He began his career doing DSP in the Seismic Research Department of Texas Instruments. In the following years, he applied his programming and DSP expertise to other interesting areas, including sonar and underwater acoustics.

Richard holds an MSEE degree from Southern Methodist University and has many years of experience in the application of computer technology to real-world problems.

Summary:  Part 5 of the Build Web apps with ThinWire and Java code series explores a methodology for separating your ThinWire and Java™ Web site into multiple pages, providing the ability for your clients to switch among those pages using either direct pointer links or sequential page access.

View more content in this series

Date:  10 Apr 2007
Level:  Intermediate PDF:  A4 and Letter (435 KB | 39 pages)Get Adobe® Reader®

Activity:  5595 views
Comments:  

Before you start

As you learned in Parts 1, 2, 3, and 4, the open source development framework ThinWire (see Resources for more information) allows developers to use Java code exclusively for the development of Web applications.

All of the code for a ThinWire Web application is written in Java code just as though it is a stand-alone, event-driven program designed to be run on the desktop. It is then compiled into a Web application by the ThinWire framework using the standard Sun javac compiler. A special compiler provided by another vendor isn't required.

About this series

This tutorial is part of a series designed to teach you how to develop rich Web applications using ThinWire and Java code.

The first tutorial (see Resources) was designed to help you get started developing Web applications using the ThinWire framework.

The next two tutorials -- titled "Web app layout management" and "Using the SplitLayout class" (see Resources) -- were designed to help you learn how to deal with user interface layout issues in ThinWire.

The tutorial titled "Styling support" (see Resources) was designed to teach you how to use the full range of user interface styling capabilities provided by ThinWire.

The previous tutorial titled "Write a template class" (see Resources) taught you how to write a template class that defines a commonly used Web page layout.


About this tutorial

Very few Web sites consist of a single page. Rather, most Web sites consist of multiple pages that must be navigated using links, Next and Previous buttons, or something similar. In Part 5, I'll teach you a methodology for separating your ThinWire and Java Web site into multiple pages, providing the ability for your clients to switch among those pages using either direct pointer links or sequential page access in a Next/Previous sense.

Objectives

The objective of Part 5 is to learn a methodology for separating your ThinWire and Java Web site into multiple pages, providing the ability for your clients to switch among those pages using either direct pointer links or sequential page access.


Prerequisites

Knowledge of the material presented in the previous tutorials in this series (see Resources).

Knowledge of event-driven programming using the Java programming language as embodied in Sun's J2SE 5.0 (see DickBaldwin.com in Resources).

Knowledge of how to deploy a Web application in a Java servlet container (see "Deployment of Web Applications in Jakarta Apache Tomcat 5" in Resources).

System requirements

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

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 and also see "Getting Started with Jakarta Tomcat, Servlets, and JSP" in Resources).

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

1 of 12 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Web development, Java technology
ArticleID=486818
TutorialTitle=Build Web apps with ThinWire and Java code, Part 5: Page switching
publish-date=04102007
author1-email=baldwin@dickbaldwin.com
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.