First Form using a Servlet
In the directory jakarta-tomcat-X.X/webapps/dbc/ I place an HTML file hello.html containing the form element:
<form method=get
action=“http://sirah.csit.fsu.edu:8081/dbc/servlet/HelloUser”>
Name: <input type=text name=who size=32> <p>
<input type=submit>
</form>
This assumes my host/port pair is sirah/8081.
To view this form, I point my browser at the URL:
http://sirah.csit.fsu.edu:8081/dbc/hello.html
If I enter my name and submit the form, I get back a page containing the message: