Which method must be used to encode a URL passed as an argument to HttpServletResponse.sendRedirect when using URL rewriting for session tracking?()A、ServletResponse.encodeURLB、HttpServletResponse.encodeURLC、ServletResponse.encodeRedirectURLD、HttpServletR

题目

Which method must be used to encode a URL passed as an argument to HttpServletResponse.sendRedirect when using URL rewriting for session tracking?()

  • A、ServletResponse.encodeURL
  • B、HttpServletResponse.encodeURL
  • C、ServletResponse.encodeRedirectURL
  • D、HttpServletResponse.encodeRedirectURL
参考答案和解析
正确答案:D
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which method should be used to dynamically elect an RP when your network is using PIM version1?()

  • A、auto-RP
  • B、static RP
  • C、discovery mode
  • D、bootstrap protocol

正确答案:A

第2题:

Your network consists of a single Active Directory domain.You have a Web server named server1.contoso.com that runs Windows Server 2003 Service Pack 2 (SP2). Users access a Web site on Server1 by using the URL http://server1.contoso.com. Users also access the Web site on Server1 by using the URL http://192.168.1.10.You need to configure DNS to enable users to access the Web site by using the URL http://www.contoso.com. The solution must prevent the need to manually update DNS if the IP address of Server1 changes.  Which type of resource record should you create in DNS?()

  • A、alias (CNAME) 
  • B、host (A) 
  • C、host (AAAA) 
  • D、host information (HINFO)

正确答案:A

第3题:

Which method should be used to dynamically elect an RP when your network is using PIM version1?()

A. auto-RP

B. static RP

C. discovery mode

D. bootstrap protocol


参考答案:A

第4题:

Which the JSTL code snippet can be used to import content from another web resource?()

  • A、 <c:import url=*foo.jsp”/> 
  • B、 <c:import page=*foo.jsp”/> 
  • C、 <c:include url=*foo.jsp”/> 
  • D、 <c:include page=*foo.jsp”/> 
  • E、 Importing cannot be done in JSTL. A standard action must be used instead.

正确答案:A

第5题:

Which statement is false?() 

  • A、 custom URL categories cannot contain IP addresses
  • B、 custom URL categories cannot override predefined URL categories
  • C、 custom URL categories can contain domain names
  • D、 custom URL categories can use regular expressions

正确答案:A

第6题:

Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()

  • A、Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.
  • B、Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.
  • C、Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.
  • D、Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

正确答案:B

第7题:

When using IP SLA FTP operation, which two FTP modes are supported? ()

  • A、Only the FTP PUT operation type is supported.
  • B、Active mode is supported.
  • C、Passive FTP transfer modes are supported.
  • D、FTP URL specified for the FTP GET operation is not supported.

正确答案:B,C

第8题:

When configuring more than one archival site, which statement is true?()

A. The system will first attempt the transfer using the URL configured last

B. The system will transfer the configuration to each archival site

C. The system will not transfer to a secondary site unless the previous site fails

D. The system will transfer using secure copy protocol (SCP) before attempting FTP


参考答案:C

第9题:

Which JSTL code snippet can be used to perform URL rewriting?()

  • A、<a href=’<c:url url="foo.jsp"/>’ />
  • B、<a href=’<c:link url="foo.jsp"/>’ />
  • C、<a href=’<c:url value="foo.jsp"/>’ />
  • D、<a href=’<c:link value="foo.jsp"/>’ />

正确答案:C

第10题:

A developer for the Company.com web site has been told that users may turn off cookie support in their browsers. What must the developer do to ensure that these customers can still use the web application?()  

  • A、 The developer must ensure that every URL is properly encoded using the appropriate URL rewriting APIs
  • B、 The developer must provide an alternate mechanism for managing sessions and abandon theHttpSession mechanism entirely
  • C、 The developer can ignore this issue. Web containers are required to support automatic URL rewriting when cookies are not supported
  • D、 The developer must ass the string ?id= to the end of every URL to ensure that the conversion with the browser can continue.

正确答案:A

更多相关问题