• 2022-06-06
    HttpServlet的子类要从HTTP请求中获得请求参数,应该调用哪个方法()。
    A: 调用HttpServletRequest对象的getAttribute()
    B: 调用ServletContext对象的getAttribute()
    C: 调用HttpServletRequest对象的getParameter()
    D: 调用HttpServletRequest对象的getParameters()
  • C

    内容

    • 0

      通过调用request对象的getParameter方法返回的数据类型为;通过调用session对象的getAttribute方法返回的数据类型为;通过调用application对象的getAttribute方法返回的数据类型为。

    • 1

      Servlet可通过由容器传递来的HttpServletRequest对象的()方法来获取客户请求的输入参数。 A: getParameter B: getProtocol C: getContentType D: getAttribute

    • 2

      ‎servlet 可通过由容器传递来的HttpServletRequest 对象的_____方法来获取客户请求的输入参数。‍ A: getParameter B: getProtocol C: getContentType D: getAttribute

    • 3

      HttpServletRequest对象的()方法能够获取一个表单参数的值选一项 A: getQuaryString() B: getPathInfo() C: getParameter() D: getAttribute()

    • 4

      当客户请求一个HttpServlet 对象时,该对象的__________方法就要被调用