request.getAttribute() 和 request.getParameter() 有何区别?
request.getAttribute() 和 request.getParameter() 有何区
别?
相关考题:
GivenanHttpServletRequestrequest,whichretrievesanobjectoftypeAccountwithanIdof“account”?() A.Accountaccount=request.getResource(”account”):B.Accountaccount=request.getAttribute(“account”):C.Accountaccount=request.getParameter(account”):D.Accountaccount=(Account)request.getResource(“account”):E.Accountaccount=(Account)request.getAttribute(“account”):F.Accountaccount=(Account)request.getParamter(“account”):
以下()可用于检索session属性userid的值。A、session.getAttribute(“userid”)B、session.setAttribute(“userid”)C、request.getParameter(“userid”)D、request.getAttribute(“userid”)
如果某一JSP页面的表单中,有几个复选框,name为“habit“,则该JSP提交后,通过下面()语句去获取用户选中复选框的值。 A、request.getAttribute(“habit”);B、request.getParameter(“habit”)C、request.getParameterValues(“habit”)D、request.getHabit();
在JSP中,下列()语句可以获取页面请求中一个文本框的输入(文本框的名称为title).。A、request.getParameter(“title”)B、request.getAttribute(“title”)C、request.getParameterValues(“title”)D、request.getParameters(“title”)
JSP从HTML表单中获得用户输入的正确语句为()。A、Request.getParameter(“ID”)B、Reponse.getParameter(“ID”)C、Request.getAttribute(“ID”)D、Reponse.getAttribute(“ID”)
问答题区段列车和摘挂列车有何区别?有何共同点?