JavaDeploy
SiteMap
JSP - Servlets
JDBC
EJB Concepts
Entity Beans
JSP Servlets
«Prev
Next»
Servlet Intro
Java Servlets
HTTP Stateless Information
Problems with CGI
Java Servlet Advantages.
Servlet GET Requests
Software Configuration
Java Servlet Development Kit
Text Editor
Configuring JSDK
Servlet Page Generation
doGet Servlet Method.
Simple Servlet generates HTML
Generating Page from Servlet
Maintaining Servlet State
HTML Form Creation
Form Servlet Communication
Generating Servlet Form
Start Web Server
Processing Servlet Form
Web Page Generation
Servlet Database Connection
What is JDBC?
Applet Servlet Interaction
Display Servlet Response
Java Form applet - Exercise
Our sample applet
Code a form applet
Objective:
Build an applet that displays a form.
Exercise scoring
This exercise is worth 5 points. The exercise is auto-scored, which means that all you have to do to receive credit for it is click the
Completed
button below.
Instructions
Code an applet that displays the same user interface as the one in this
A text label reminding the user to enter a name
A text input field for the user to type in
A button for the user to click
There is no need to use special layouts or carefully arrange these three items.
Compile your applet, and test it with this HTML:
<html>
<head>
<title>Form Tester</title>
<body bgcolor=white>
<h1>This applet behaves like an HTML form</h1>
<applet code="Form_applet.class" width=300 height=80>
</applet>
</body>
</html>