试题详情
单项选择题 在J2EE中,Servlet1的代码如下:  import javax.servlet.*;  import javax.servlet.http.*; import java.io.*;  public class Servlet1 extends HttpServlet {  public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {      response.setContentType("text/html");      PrintWriter out = response.getWriter();      String aa=request.getQueryString();      String bb=request.getMethod();      out.println(aa);  out.println(bb);   } }  把Servlet1.class文件放在Web服务器适合的目录下,在浏览B器地址栏内输入:http://localhost:8080/servlet/Servlet1?name=jb-aptech&phone=12345678,看到的结果是()。 

A、name=jb-aptech&phone=12345678 GET

B、name=jb-aptech,phone=12345678 GET

C、jb-aptech,12345678 POST

D、name,phone GET

E、2,POST

  • A
  • 关注下方微信公众号,在线模考后查看

热门试题