ServletResponse.encodeURL
HttpServletResponse.encodeURL
ServletResponse.encodeRedirectURL
HttpServletResponse.encodeRedirectURL
第1题:
Which the JSTL code snippet can be used to import content from another web resource?()
第2题:
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?()
第3题:
Which two JSTL URL-related tags perform URL rewriting?()
第4题:
Which the statement is true about web container session management()?
第5题:
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?()
第6题:
auto-RP
static RP
discovery mode
bootstrap protocol
第7题:
The system will first attempt the transfer using the URL configured last
The system will transfer the configuration to each archival site
The system will not transfer to a secondary site unless the previous site fails
The system will transfer using secure copy protocol (SCP) before attempting FTP
第8题:
ServletResponse.encodeURL
HttpServletResponse.encodeURL
ServletResponse.encodeRedirectURL
HttpServletResponse.encodeRedirectURL
第9题:
The developer must ensure that every URL is properly encoded using the appropriate URL rewriting APIs
The developer must provide an alternate mechanism for managing sessions and abandon theHttpSession mechanism entirely
The developer can ignore this issue. Web containers are required to support automatic URL rewriting when cookies are not supported
The developer must ass the string ?id=
第10题:
Add attributes to the session object.
Add attributes on the request object.
Add parameters to the request object.
Use the pageContext object to add request attributes.
Add parameters to the JSP’s URL when generating the request dispatcher.
第11题:
url
link
param
import
redirect
第12题:
It can be invoked only from the doGet or doPost methods.
It can be used independently of the getRemoteUser method.
Can return true even when its argument is NOT defined as a valid role name in the deployment descriptor.
Using the isUserInRole method overrides any declarative authentication related to the method in which it is invoked.
第13题:
Which method must be used to encode a URL passed as an argument to HttpServletResponse.sendRedirect when using URL rewriting for session tracking?()
第14题:
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?()
第15题:
Which two statements are true about using the isUserInRole method to implement security in a Java EEapplication?()
第16题:
When configuring more than one archival site, which statement is true?()
第17题:
Which of the following statements about variables and their scopes are true? ()
第18题:
<c:import page=*foo.jsp”/>
<c:include url=*foo.jsp”/>
<c:include page=*foo.jsp”/>
Importing cannot be done in JSTL. A standard action must be used instead.
第19题:
<c:import url=foo.jsp/>
<c:import page=foo.jsp/>
<c:include url=foo.jsp/>
<c:include page=foo.jsp/>
第20题:
Access to session-scoped attributes is guaranteed to be thread-safe by the web container.
To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.
If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.
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.
第21题:
Use the Server.Transfer method to transfer execution to the correct ASPX page.
Use the Response.Redirect method to transfer execution to the correct ASPX page.
Use the HttpContext.Current.RewritePath method to transfer execution to the correct ASPX page.
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.
第22题:
<a href=’<c:url url=foo.jsp/>’ />
<a href=’<c:link url=foo.jsp/>’ />
<a href=’<c:url value=foo.jsp/>’ />
<a href=’<c:link value=foo.jsp/>’ />
第23题:
Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.
Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.
Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.
Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.