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);%
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");%>