For an HttpServletResponse response,which two create a custom header?()
Aresponse.setHeader(X-MyHeader, 34);
Bresponse.addHeader(X-MyHeader, 34);
Cresponse.setHeader(new HttpHeader(X-MyHeader, 34));
Dresponse.addHeader(new HttpHeader(X-MyHeader, 34));
Eresponse.addHeader(new ServletHeader(X-MyHeader, 34));
相关问题推荐
我国于()开始实施的《计算机信息系统国际联网保密管理规定》,要求凡涉及*国家秘密*的计算机信息系统不得直接或间接与国际互联网或其他公共信息网连接,必须实行物理隔离。
A、2000年1月1日
B、2000年2月1日
C、2000年5月1日
D、2000年7月1日
EMPDET is an external table containing the columns EMPNO and ENAME. Which command would work in relation to the EMPDET table? ()
A、 A
B、 B
C、 C
D、 D
A Power 720 has AIX 6.1 and Linux partitions.During normal workloads there is more than enough memory available to the LPARs. During month-end processing one partition becomes memory constrained. What can help overcome this situation?()
A、Active Memory Sharing (AMS)
B、Active Memory Expansion (AME)
C、Integrated Virtual Memory (IVM)
D、Memory Capacity on Demand (CoD)
Which two are true concerning the objects available to developers creating tag files?()
AThe session object must be declared explicitly.
BThe request and response objects are available implicitly.
CThe output stream is available through the implicit outStream object.
DThe servlet context is available through the implicit servletContext object.
EThe JspContext for the tag file is available through the implicit jspContext object.
One of the use cases in your web application uses many session-scoped attributes. At the end of the usecase,you want to clear out this set of attributes from the session object. Assume that this static variableholds this set of attribute names: 201.private static final Set USE_CASE_ATTRS; 202.static { 203.USE_CASE_ATTRS.add("customerOID"); 204.USE_CASE_ATTRS.add("custMgrBean"); 205.USE_CASE_ATTRS.add("orderOID"); 206.USE_CASE_ATTRS.add("orderMgrBean"); 207.} Which code snippet deletes these attributes from the session object?()
A、session.removeAll(USE_CASE_ATTRS);
B、for ( String attr : USE_CASE_ATTRS ) {session.remove(attr);}
C、for ( String attr : USE_CASE_ATTRS ) {session.removeAttribute(attr);}
D、for ( String attr : USE_CASE_ATTRS ) {session.deleteAttribute(attr);}
E、session.deleteAllAttributes(USE_CASE_ATTRS);