网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
如何获取ServletContext设置的参数值()。
- A、context.getParameter()
- B、context.getInitParameter()
- C、context.getAttribute()
- D、context.getRequestDispatcher()
参考答案
更多 “如何获取ServletContext设置的参数值()。A、context.getParameter()B、context.getInitParameter()C、context.getAttribute()D、context.getRequestDispatcher()” 相关考题
考题
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);%
考题
In a JSP-centric web application, you need to create a catalog browsing JSP page. The catalog is stored asa List object in the catalog attribute of the webapp’s ServletContext object. Which scriptlet code snippetgives you access to the catalog object?()A、% List catalog = config.getAttribute("catalog"); %B、% List catalog = context.getAttribute("catalog"); %C、% List catalog = application.getAttribute("catalog"); %D、% List catalog = servletContext.getAttribute("catalog"); %
考题
Repeater控件的()属性获取或设置如何显示repeater控件的注脚部分。A、itemtemplateB、separatortemplateC、footertemplateD、alternatingitemtemplate
考题
关于ServletContext说法正确的是()A、是一个Web应用程序的上下文环境B、一个Servlet在ServletContext上设置属性可以被其他Servlet所共享C、可以获取Servlet的配置信息D、可以获取整个应用程序的初始化参数
考题
实现ServletContextListener和ServletContextAttributeListener接口,可以监听ServletContext的哪些信息?()A、ServletContext的创建B、ServletContext的删除C、ServletContext属性的增加D、ServletContext属性的删除E、ServletContext属性的修改
考题
Java Web应用中往往通过设置不同作用域的属性来达到通讯的目的。如果某个对象只在同一请求中共享,应通过调用哪个类的setAttribute方法设置属性?()A、HttpServletRequestB、ServletRequestListenerC、HttpSessionD、ServletContext
考题
J2EE中()类()方法用于返回应用程序的上下文路径。A、ServletContext、getContextPath()B、HttpServletRequset、getPathInfo()C、HttpServletRequest、getContextPath()D、ServletContext、getPathInfo()
考题
ServletContext对象是如何创建的()A、由 Servlet容器创建,对于每个HTTP请求.Servlet容器都会创建一个ServletContext对象B、由JavaWeb 应用本身为自己创建一个ServletContext对象C、由Servlet容器创建,对于每个JaveWeb应用,在启动时,Servlet容器都会创建一个ServletContext对象
考题
Word2010中针对所选定的段落,用户可以通过()方式设置段落缩进。A、“开始”→“段落”→“缩进和间距”→设置数值B、“页面布局”→“段落”→“缩进和间距”→设置数值C、“视图”→“段落”→“缩进和间距”→设置数值D、在Word页面使用标尺手动设置
考题
单选题ServletContext对象是如何创建的()A
由 Servlet容器创建,对于每个HTTP请求.Servlet容器都会创建一个ServletContext对象B
由JavaWeb 应用本身为自己创建一个ServletContext对象C
由Servlet容器创建,对于每个JaveWeb应用,在启动时,Servlet容器都会创建一个ServletContext对象
考题
多选题Word2010中针对所选定的段落,用户可以通过()方式设置段落缩进。A“开始”→“段落”→“缩进和间距”→设置数值B“页面布局”→“段落”→“缩进和间距”→设置数值C“视图”→“段落”→“缩进和间距”→设置数值D在Word页面使用标尺手动设置
考题
多选题关于ServletContext说法正确的是()A是一个Web应用程序的上下文环境B一个Servlet在ServletContext上设置属性可以被其他Servlet所共享C可以获取Servlet的配置信息D可以获取整个应用程序的初始化参数
考题
单选题Repeater控件的()属性获取或设置如何显示各项之间的分隔符。A
itemtemplateB
separatortemplateC
footertemplateD
headertemplate
热门标签
最新试卷