Compile GetForm.java and PostForm.java. and install the resulting class files to the . Making sure that your servlet engine is active, browse the page GetForm.html then PostForm.html. Did the servlets run? Compare the outputs – including the URL displayed in the browser -- with those generated using CGI scripts in the previous lab.
What will be an ideal response?
The outputs are similar. With the GetForm, the URL displayed in the browser looks like:
http://localhost:8080/examples/servlet/GetForm?name=john&quest=happy&color=chartreuse&swallow=african&text=Live+or+die%21
and the name-value pairs in the query string are displayed in the browser window.
With the PostForm, the URL displayed is http://localhost:8080/examples/servlet/PostForm
and the name-value pairs in the query string are displayed in the browser window.
You might also like to view...
________ is digital textual information that can be stored, manipulated, and transmitted by electronic devices
A) SMTP B) E-text C) Digital rights management D) Short message service
The Direction and ________ gradient fill options determine the progression of colors from one area of the slide to another
Fill in the blank(s) with correct word