HttpServletRequest的______方法可以得到会话
HttpServletRequest的______方法可以得到会话
HttpServletRequest接口是ServletRequest接口的 。
HttpServletRequest接口是ServletRequest接口的 。
HttpServletRequest对象如何获取请求参数?
HttpServletRequest对象如何获取请求参数?
HttpServletRequest 接口的( )方法用于创建会话
HttpServletRequest 接口的( )方法用于创建会话
HttpServlet的子类要从HTTP请求中获得请求参数,应该调用哪个方法()。 A: 调用HttpServletRequest对象的getAttribute() B: 调用ServletContext对象的getAttribute() C: 调用HttpServletRequest对象的getParameter() D: 调用HttpServletRequest对象的getParameters()
HttpServlet的子类要从HTTP请求中获得请求参数,应该调用哪个方法()。 A: 调用HttpServletRequest对象的getAttribute() B: 调用ServletContext对象的getAttribute() C: 调用HttpServletRequest对象的getParameter() D: 调用HttpServletRequest对象的getParameters()
HttpServletRequest接口中getParameterMap()方法的返回值类型是( )
HttpServletRequest接口中getParameterMap()方法的返回值类型是( )
在HttpServletRequest接口中, getContentType()方法的返回值类型为( )
在HttpServletRequest接口中, getContentType()方法的返回值类型为( )
下面选项中,能够获取客户端ip地址的选项是() A: <;% HttpServletRequest request=pageContext.getRequest(); String ip = request.getRemoteAddr(); out.println("本机的IP地址为:"+ip);%>; B: <;% HttpServletRequest request=(HttpServletRequest)pageContext.getRequest(); String ip = request.getRemoteAddr(); out.println("本机的IP地址为:"+ip);%>; C: <;% String ip = request.getRemoteAddr(); out.println("本机的IP地址为:"+ip);%>; D: <;% HttpServletRequest request=pageContext.getRequest(); String ip = request.getLocalAddr(); out.println("本机的IP地址为:"+ip);%>;
下面选项中,能够获取客户端ip地址的选项是() A: <;% HttpServletRequest request=pageContext.getRequest(); String ip = request.getRemoteAddr(); out.println("本机的IP地址为:"+ip);%>; B: <;% HttpServletRequest request=(HttpServletRequest)pageContext.getRequest(); String ip = request.getRemoteAddr(); out.println("本机的IP地址为:"+ip);%>; C: <;% String ip = request.getRemoteAddr(); out.println("本机的IP地址为:"+ip);%>; D: <;% HttpServletRequest request=pageContext.getRequest(); String ip = request.getLocalAddr(); out.println("本机的IP地址为:"+ip);%>;
HttpServletRequest对象的()方法能够获取一个表单参数的值:
HttpServletRequest对象的()方法能够获取一个表单参数的值:
给定request是一个HttpServletRequest对象,可使用创建一个会话
给定request是一个HttpServletRequest对象,可使用创建一个会话