如果要取得ServletContext初始参数,则可以执行()方法。
第1题:
下面哪项不是application对象的方法()
A、getAttribute(Stringname)
B、getCookies()
C、getInitParameter()
D、setAttribute(Stringname,Objectvalue)
第2题:
InaJSP-centricwebapplication,youneedtocreateacatalogbrowsingJSPpage.ThecatalogisstoredasaListobjectinthecatalogattributeofthewebapp’sServletContextobject.Whichscriptletcodesnippetgivesyouaccesstothecatalogobject?()
A.<%Listcatalog=config.getAttribute("catalog");%>
B.<%Listcatalog=context.getAttribute("catalog");%>
C.<%Listcatalog=application.getAttribute("catalog");%>
D.<%Listcatalog=servletContext.getAttribute("catalog");%>
第3题:
A.调用 HttpServletRequest 对象的 getAttribute()方法
B.调用 ServletContext 对象的 getAttribute()方法
C.调用 HttpServletRequest 对象的 getParameter()方法
第4题:
从HTTP请求中,获得请求参数,应该调用()
第5题:
request.getAttribute() 和 request.getParameter() 有何区
别?
第6题:
可以取得用交提交的参数的所有记录值的方法是()
A、getParameter()
B、getAttribute()
C、getParameterValues()
D、getSession()
第7题:
A.request对象的getAttribute()方法
B.request对象的getParameter()方法
C.session对象的getAttribute()方法
D.session对象的getParameter()方法
第8题:
A、getAttribute(Stringstr)
B、getCookies()
C、getParameter(Stringstr)
D、sendRedirect(Stringurl)
第9题:
FilterConfig的哪个方法可以返回init参数的名称?()
第10题:
关于过滤器的描述,以下哪一个正确()。