问题详情

For an HttpServletResponse response,which two create a custom header?()

A

response.setHeader(X-MyHeader, 34);

B

response.addHeader(X-MyHeader, 34);

C

response.setHeader(new HttpHeader(X-MyHeader, 34));

D

response.addHeader(new HttpHeader(X-MyHeader, 34));

E

response.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?()

A

The session object must be declared explicitly.

B

The request and response objects are available implicitly.

C

The output stream is available through the implicit outStream object.

D

The servlet context is available through the implicit servletContext object.

E

The 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);

联系客服 会员中心
TOP