网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?()
A
${userName}
B
${cookie.userName}
C
${cookie.user.name}
D
${cookies.userName[0]}
参考答案
参考解析
解析:
暂无解析
更多 “单选题Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?()A ${userName}B ${cookie.userName}C ${cookie.user.name}D ${cookies.userName[0]}” 相关考题
考题
创建一个Cookie的正确代码( )。
A、Response.Cookies["userName"]="apple"B、Cookies["userName"]="apple"C、Cookies["userName"].Value="apple"D、Response.Cookies["userName"].Value="apple"
考题
You create a Web site that is for members only. The Web site allows members to create lists of users that have access to information about member profiles. The name of the list is stored in the listName variable. The user name of the user to whom access is given is stored in the username variable.You need to enable members to manage their lists of users.Which code segment should you use?()A.B.C.D.
考题
GivenawebapplicationinwhichthecookieuserNameisexpectedtocontainthenameoftheuser.Which ELexpressionevaluatestothatusername?()
A.${userName}B.${cookie.userName}C.${cookie.user.name}D.${cookies.userName[0]}
考题
An enterprise has an internal web application that needs stickiness managed by a Cluster. Allemployees access the application through a proxy. What is the correct sticky load balancing policy? ()
A. urlhashB. url persistencyC. cookie persistencyD. default persistency
考题
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.
考题
Given a web application in which the request parameter productID contains a product identifier. Which twoEL expressions evaluate the value of the productID?()A、${productID}B、${param.productID}C、${params.productID}D、${params.productID[1]}E、${paramValues.productID}F、${paramValues.productID[0]}
考题
Which three statistics does the Executive report summarize?() (Choose three.)A、latency and lossB、compression resultsC、traffic (by application)D、CRC and alignment errorsE、user access (by username)
考题
In which three directories, relative to a web application’s root, may a tag library descriptor file reside whendeployed directly into a web application?()A、/WEB-INFB、/META-INFC、/WEB-INF/tldsD、/META-INF/tldsE、/WEB-INF/resourcesF、/META-INF/resources
考题
An enterprise has an internal web application that needs stickiness managed by a Cluster. Allemployees access the application through a proxy. What is the correct sticky load balancing policy? ()A、urlhashB、url persistencyC、cookie persistencyD、default persistency
考题
Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?()A、${userName}B、${cookie.userName}C、${cookie.user.name}D、${cookies.userName[0]}
考题
Which additional application must be installed in order to use WebSMIT?()A、Mozilla for AIXB、An Apache compliant Web serverC、Web Based System Manager (WebSM)D、Websphere Application Server Community Edition
考题
Which path, relative to a web application’s root, identifies the web application’s deployment descriptor?()A、 /conf/web.xmlB、 /WEB-INF/web.xmlC、 /conf/server.xmlD、 /META-INF/web.xmlE、 /WEB-INF/rules.xmlF、 /META-INF/server. Xml
考题
Given a web application in which the request parameter product ID contains a product identifier.Which two EL expressions evaluate the value of the product ID?()A、 ${product ID}B、 ${param.productID}C、 ${params.productID}D、 ${params.productID[1]}E、 ${paramvalues.productID}F、 ${paramValues.productID[0]}G、 ${pageContext.request.productID}
考题
Given an HttpServletRequest request and HttpServletResponse response,which sets a cookie "username"with the value "joe" in a servlet?()A、request.addCookie("username", "joe")B、request.setCookie("username", "joe")C、response.addCookie("username", "joe")D、request.addHeader(new Cookie("username", "joe"))E、request.addCookie(new Cookie("username", "joe"))F、response.addCookie(new Cookie("username", "joe"))
考题
For which three events can web application event listeners be registered?()A、When a session is createdB、After a servlet is destroyedC、When a session has timed outD、When a cookie has been createdE、When a servlet has forwarded a requestF、When a session attribute value is changed
考题
Given an HttpSession session,a ServletRequest request,and a ServletContext context,which retrieves aURL to /WEB-INF/myconfig.xml within a web application?()A、session.getResource("/WEB-INF/myconfig.xml")B、request.getResource("/WEB-INF/myconfig.xml")C、context.getResource("/WEB-INF/myconfig.xml")D、getClass().getResource("/WEB-INF/myconfig.xml")
考题
In which two locations can library dependencies be defined for a web application? ()A、 the web application deployment descriptorB、 the /META-INF/dependencies.xml fileC、 the /META-INF/MANIFEST.MF manifest fileD、 the /META-INF/MANIFEST.MF manifest of a JAR in the web application classpath
考题
多选题Which three statistics does the Executive report summarize?() (Choose three.)Alatency and lossBcompression resultsCtraffic (by application)DCRC and alignment errorsEuser access (by username)
考题
单选题Given an HttpServlet Request request and Http Servlet Response response, which sets a cookie “username” with the value “joe” in a servlet.?()A
request.add Cookie (“username”. “joe”)B
request.set Cookie (“username, “joe”)C
response.add Cookie (username”, “joe”))D
request.add Header (new Cookie (“username”, “joe”))E
request.add Cookie (new Cookie (“username”, “joe”))F
response.add Cookie (new Cookie (“username”, “joe”))G
response.add Header (new Cookie (“username”, “joe”))
考题
单选题Given an Http Session session. A Servlet Request request. And a Servlet Context context. Which retrieves a URL to /WEB INF/ my config.xml within a web application?()A
session.get Resource (“/WEB-INF/myconfig.xml”)B
request.get Resource (“/WEB-INF/myconfig.xml”)C
context.get Resource (“/WEB-INF/myconfig.xml”)D
get Class ().get Resource (“/WEB-INF/myconfig.xml”)
考题
单选题Given an HttpServletRequest request and HttpServletResponse response,which sets a cookie "username"with the value "joe" in a servlet?()A
request.addCookie(username, joe)B
request.setCookie(username, joe)C
response.addCookie(username, joe)D
request.addHeader(new Cookie(username, joe))E
request.addCookie(new Cookie(username, joe))F
response.addCookie(new Cookie(username, joe))
考题
单选题You create a Web site that is for members only. The Web site allows members to create lists of users that have access to information about member profiles. The name of the list is stored in the listName variable. The user name of the user to whom access is given is stored in the username variable. You need to enable members to manage their lists of users. Which code segment should you use? ()A
Roles.CreateRole(listName)User.IsInRole(listName)B
Roles.CreateRole(listName)Roles.AddUserToRole(userName, listName)C
Roles.RoleExists(listName)Roles.AddUserToRole(userName, listName)D
Roles.RoleExists(listName)User.IsInRole(listName)
考题
单选题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.
考题
多选题For which three events can web application event listeners be registered? ()Awhen a session is createdBafter a servlet is destroyedCwhen a session has timed outDwhen a cookie has been createdEwhen a servlet has forwarded a requestFwhen a session attribute value is changed
考题
多选题Given a web application in which the request parameter productID contains a product identifier. Which twoEL expressions evaluate the value of the productID?()A${productID}B${param.productID}C${params.productID}D${params.productID[1]}E${paramValues.productID}F${paramValues.productID[0]}
考题
单选题若要获得名为username的Cookie值,以下语句正确的是()。A
Requst.Cookie(“username”)B
Requst.Cookies(“username”)C
ResponsE.Cookie(“username”)D
ResponsE.Cookies(“username”)
考题
多选题A developer wants a web application to be notified when the application is about to be shut down. Which two actions are necessary to accomplish this goal?()AInclude a listener directive in a JSP pageBconfigure a listener in the TLD file using the elementCInclude a element in the web application deployment descriptorDconfigure a listener in the application deployment descriptor, using the elementEInclude a class implementing ServletContextListener as part of the web application deploymen
考题
单选题Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?()A
${userName}B
${cookie.userName}C
${cookie.user.name}D
${cookies.userName[0]}
热门标签
最新试卷