单选题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 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


参考解析

解析: 暂无解析

相关考题:

在J2EE中,URL类代表了统一资源定位器,如果要使用 “http://www.sina.com.cn/index.html”生成URL对象,可以按照如下的()造该对象。 A、URL url=new URL("http","www.sina.com.cn/index.html",80);B、URL url=new URL("http://www.sina.com.cn/index.html");C、URL url=new URL("http","www.sina.com.cn",80,"index.html");D、Url url=new URL("http","www.sina.com.cn/index.html");

The Junos OS blocks an HTTP request due to the category of the URL.Which form of Web filtering is being used?()A、redirect Web filteringB、integrated Web filteringC、categorized Web filteringD、local Web filtering

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)

Which interface must a session attribute implement if it needs to be notified when a web container persistsa session?()A、javax.servlet.http.HttpSessionListenerB、javax.servlet.http.HttpSessionBindingListenerC、javax.servlet.http.HttpSessionAttributeListenerD、javax.servlet.http.HttpSessionActivationListener

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.

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

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

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.

You are creating a web form with this HTML: 11. 12. 13. 14. 15. Which HTTP method is used when sending this request from the browser?()A、GETB、PUTC、POSTD、SENDE、FORM

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.

单选题Which method should be used to dynamically elect an RP when your network is using PIM version1?()Aauto-RPBstatic RPCdiscovery modeDbootstrap protocol

单选题You are creating a web form with this HTML: 11. 12. 13. 14. 15. Which HTTP method is used when sending this request from the browser?()AGETBPUTCPOSTDSENDEFORM

单选题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.

单选题Your network consists of a single Active Directory domain named contoso.com. All servers run Windows Server 2003 Service Pack 2 (SP2). You deploy a Web server named Server1. Users access the server by using the URL http://server1.contoso.com. You need to create a new resource record that will allow users to access the server by using the URL http://www.contoso.com. The solution must prevent the need to modify the new record if the IP address of Server1 changes.  Which type of resource record should you configure?()Aalias(CNAME)Bhost (A)Cmail exchanger (MX)Dpointer(PTR)

单选题Which statement is true about web container session management?()AAccess to session-scoped attributes is guaranteed to be thread-safe by the web container.BTo activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.CIf the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.DThe 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.

单选题The Junos OS blocks an HTTP request due to the category of the URL.Which form of Web filtering is being used?()Aredirect Web filteringBintegrated Web filteringCcategorized Web filteringDlocal Web filtering

单选题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?()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.

单选题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?()Aalias (CNAME) Bhost (A) Chost (AAAA) Dhost information (HINFO)

单选题Which JSTL code snippet can be used to perform URL rewriting?()Aa href=’c:url url=foo.jsp/’ /Ba href=’c:link url=foo.jsp/’ /Ca href=’c:url value=foo.jsp/’ /Da 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?()AServletResponse.encodeURLBHttpServletResponse.encodeURLCServletResponse.encodeRedirectURLDHttpServletResponse.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.

单选题Which interface must a session attribute implement if it needs to be notified when a web container persistsa session?()Ajavax.servlet.http.HttpSessionListenerBjavax.servlet.http.HttpSessionBindingListenerCjavax.servlet.http.HttpSessionAttributeListenerDjavax.servlet.http.HttpSessionActivationListener