多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

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"); %>
正确答案:C
答案解析:
进入题库查看解析

微信扫一扫手机做题