Given the following HTML form on a Web page:
<FORM ACTION=”http://localhost:7001/phoneBook” METHOD=”GET”>
<H1>Phone Book</H1>
<CENTER>
<p>
Last Name: <INPUT TYPE=”TEXT” NAME=”last” SIZE=”25″ VALUE=”Smith”><p>
First Name: <INPUT TYPE=”TEXT” NAME=”first” SIZE=”25″ VALUE=”John”><p>
Phone Number: <INPUT TYPE=”TEXT” NAME=”phone” SIZE=”17″ VALUE=”4567890″><p>
<p><INPUT TYPE=”SUBMIT”>
</CENTER>
</FORM>
Assume a servlet receives the request submitted through this form. Which two methods would
extract the phone number information from the request object?
A.
response.getAttribute(“TEXT”);
B.
request.getParameterValues(“phone”)[0];
C.
request.getParameterValues(“Phone Number”)[0];
D.
request.getParameter(“Phone Number”);
E.
request.getAttribute(“phone”);
F.
request.getParameter(“phone”);
G.
response.getAttribute(“Phone Number”);