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
Configuring JSDK
Text Editor
JSDK Server
Java Web Server
Installing Java Web Server
Testing Administering Web Server
Other Web Servers
Non Servlet Server Add Ons
Webserver Config Conlusion
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
JDBC Servlets
SQL Commands
JDBC Data Source
JDBC Connection
Datasource Java
Read Data From Resultset
JDBC Resultset Example
Write To Database
Servlet Operations Conclusion
Applet Servlet Interaction
Java Browser Versions
Java Applet Tutorial
Send Get Servlet
Connect Server Get Request
Servlet Receives Get Request
Display Servlet Response
Reading Servlet Response
AppletServlet Communication Conclusion
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>