Technical Support
Discussion Forum
Online Training
Technical Articles
Bug Parade
JDC Resources
DukeDollars
Early Access Toolbar

Java Cup Logo
java.sun.com


Solaris Developer Connection

JDC Home Page

Log Out

Online Training
shadowSearchFAQFeedback

Training Index

Fundamentals of JavaTM Servlets:
Magercises

By MageLang Institute

[Course Notes | Module Intro]

Welcome to the MageLang Institute Magercises for the Fundamentals of Java Servlets course module.

These Magercises illustrate how to build and use Java servlets to extend the functionality of a web server.

When you finish these Magercises, you will be able to create new servlets and integrate them into a web site. You will also learn how to create a direct link between applets running in the client browser and servlets running in the web server. With this foundation, you will be able to design and implement sophisticated web-based client/server and multi-tiered computing solutions.

A help document provides a quick explanation of the concepts behind the magercises.

Magercises

  1. Hosting with servletrunner

    This Magercise shows you how to build a simple servlet and host it with the servletrunner utility.

    Educational goals:

    • Compile a simple "Hello World" servlet.
    • Host the servlet with servletrunner.
    • Activate the servlet from a browser with a URL.

  2. Hosting with the Java Web Server

    This Magercise shows you how to host a servlet with the Java Web ServerTM from Sun.

    Educational goals:

    • Create and compile a simple "Hello World" Servlet.
    • Host the servlet with the Java Web Server.
    • Run the servlet from your browser.

  3. Accessing Servlet Service-Time Parameters

    This Magercise shows you how to access service-time parameters from within a servlet.

    Educational goals:

    • Learn how to access service-time parameters.
    • Format and echo the information back to the client.

  4. Generating In-line Content

    This Magercise shows you how build a servlet that provides in-line content generation. This servlet is designed to be activated via a <servlet> tag.

    Educational goals:

    • Build a servlet that generates in-line content.
    • Create an "shtml" file that the Java Web ServerTM uses to call the servlet.

  5. Posting and Processing HTML Forms

    This Magercise shows you to present and process HTML forms with servlets. Two servlets are used in this Magercise. The first one, FormDisplayServlet, is written for you. It displays an HTML form with editable data.

    You will write the second servlet, FormProcessingServlet, which processes the form post operation coming back from the browser.

    Educational goals:

    • Learn how to create HTML forms dynamically from information stored on disk.
    • Learn how to accept form input from a browser.

Copyright © 1998 MageLang Institute. All Rights Reserved.





Questions?
8-Jan-99
Copyright © 1996-1998 Sun Microsystems Inc.
All Rights Reserved. Legal Terms. Privacy Policy.
Sun Logo