网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
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
参考答案
更多 “ 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、HttpServletResponse.encodeRedirectURL” 相关考题
考题
Which method should be used to dynamically elect an RP when your network is using PIM version1?()
A. auto-RPB. static RPC. discovery modeD. bootstrap protocol
考题
When configuring more than one archival site, which statement is true?()
A. The system will first attempt the transfer using the URL configured lastB. The system will transfer the configuration to each archival siteC. The system will not transfer to a secondary site unless the previous site failsD. The system will transfer using secure copy protocol (SCP) before attempting FTP
考题
Which method should be used to dynamically elect an RP when your network is using PIM version1?()A、auto-RPB、static RPC、discovery modeD、bootstrap protocol
考题
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.
考题
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)
考题
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.
考题
Which statement is false?() A、 custom URL categories cannot contain IP addressesB、 custom URL categories cannot override predefined URL categoriesC、 custom URL categories can contain domain namesD、 custom URL categories can use regular expressions
考题
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"/’ /
考题
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 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 APIsB、 The developer must provide an alternate mechanism for managing sessions and abandon theHttpSession mechanism entirelyC、 The developer can ignore this issue. Web containers are required to support automatic URL rewriting when cookies are not supportedD、 The developer must ass the string ?id= to the end of every URL to ensure that the conversion with the browser can continue.
考题
Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated in the servlet to the JSP for view generation.This information must NOT be accessible to any other servlet,JSP or session in the webapp. Which two techniques can you use to accomplish this goal?()A、Add attributes to the session object.B、Add attributes on the request object.C、Add parameters to the request object.D、Use the pageContext object to add request attributes.E、Add parameters to the JSP’s URL when generating the request dispatcher.
考题
Which two JSTL URL-related tags perform URL rewriting?()A、UrlB、LinkC、ParamD、ImportE、Redirect
考题
When using a form-based authentication, which action must be used in the login form?()A、 j_loginB、 j_get_userC、 j_login_checkD、 j_get_securityE、 j_security_check
考题
Which two statements are true about using the isUserInRole method to implement security in a Java EEapplication?()A、It can be invoked only from the doGet or doPost methods.B、It can be used independently of the getRemoteUser method.C、Can return "true" even when its argument is NOT defined as a valid role name in the deployment descriptor.D、Using the isUserInRole method overrides any declarative authentication related to the method in which it is invoked.
考题
Which the statement is true about web container session management()?A、 Access to session-scoped attributes is guaranteed to be thread-safe by the web container.B、 To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.C、 If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.D、 The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.
考题
You have a new IT manager that has mandated that all JSPs must be refactored to include no scritpletcode. The IT manager has asked you to enforce this. Which deployment descriptor element will satisfy thisconstraint?()A、jsp-property-group. url-pattern*.jsp/url-pattern. permit-scriptingfalse/permit-scripting. /jsp-property-groupB、jsp-config. url-pattern*.jsp/url-patternpermit-scriptingfalse/permit-scripting. /jsp-configC、jsp-config. url-pattern*.jsp/url-pattern. scripting-invalidtrue/scripting-invalid. /jsp-configD、jsp-property-group. url-pattern*.jsp/url-pattern. scripting-invalidtrue/scripting-invalid. /jsp-property-group
考题
When configuring more than one archival site, which statement is true?()A、The system will first attempt the transfer using the URL configured lastB、The system will transfer the configuration to each archival siteC、The system will not transfer to a secondary site unless the previous site failsD、The system will transfer using secure copy protocol (SCP) before attempting FTP
考题
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application must redirect the original URL to a different ASPX page. You need to ensure that the users cannot view the original URL after the page is executed. You also need to ensure that each page execution requires only one request from the client browser. What should you do?()A、Use the Server.Transfer method to transfer execution to the correct ASPX page.B、Use the Response.Redirect method to transfer execution to the correct ASPX page.C、Use the HttpContext.Current.RewritePath method to transfer execution to the correct ASPX page.D、Add the Location: new URL value to the Response.Headers collection. Call the Response.End() statement. Send the header to the client computer to transfer execution to the correct ASPX page.
考题
Which of the following statements about variables and their scopes are true? () A、 Instance variables are member variables of a class.B、 Instance variables are declared with the static keyword.C、 Local variables defined inside a method are created when the method is executed.D、 Local variables must be initialized before they are used.
考题
单选题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.
考题
单选题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
HttpServletResponse.encodeRedirectURL
考题
单选题Which statement is true about web container session management?()A
Access to session-scoped attributes is guaranteed to be thread-safe by the web container.B
To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.C
If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.D
The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.
考题
多选题Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated in the servlet to the JSP for view generation.This information must NOT be accessible to any other servlet,JSP or session in the webapp. Which two techniques can you use to accomplish this goal?()AAdd attributes to the session object.BAdd attributes on the request object.CAdd parameters to the request object.DUse the pageContext object to add request attributes.EAdd parameters to the JSP’s URL when generating the request dispatcher.
考题
单选题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/’ /
考题
单选题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
HttpServletResponse.encodeRedirectURL
考题
多选题Which the two JSTL URL-related tags perform URL rewriting?()AurlBlinkCparamDimportEredirect
考题
多选题Which two statements are true about using the isUserInRole method to implement security in a Java EEapplication?()AIt can be invoked only from the doGet or doPost methods.BIt can be used independently of the getRemoteUser method.CCan return true even when its argument is NOT defined as a valid role name in the deployment descriptor.DUsing the isUserInRole method overrides any declarative authentication related to the method in which it is invoked.
热门标签
最新试卷