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.

Computer Science & Information Technology

You might also like to view...

When converting old HTML code to XHTML, make sure to replace the use of the font element with either the ____ element or with a style that applies the same formatting specified by the font element.

A. div B. color C. span D. format

Computer Science & Information Technology

____ objects means to position one or more objects in relation to each other in relation to the margins of a document, or in relation to the boundaries of the page or spread.

A. Spacing B. Distributing C. Aligning D. Grouping

Computer Science & Information Technology

Explain how to share files over a network.

What will be an ideal response?

Computer Science & Information Technology

In the __init__ method code for the LinkedVertex class, what is the missing code? def __init__(self, label): self.label = label self.edgeList = list()

A. self.size += 1 B. self.mark = False C. return iter(result) D. result = self.label

Computer Science & Information Technology