Category «1Z0-899»

Which method should the servlet use to access the uploaded files?

A web application for business expense reporting allows uploading expense receipts. Multiple receipts can be uploaded single step using one HTTP request. Theservlet that processes the request has been marked with the @MultipartConfig annotation. Which method should the servlet use to access the uploaded files? A. HttpServletRequest.getParts() B. HttpServletRequest.getData() C. servletRequest.getParts() D. servletRequest.getAllParts() Explanation:The request.getParts() …

Which EL expression returns true if no session has been established with current client?

Which EL expression returns true if no session has been established with current client? A. ${not(pageContext.session)} B. ${not(requestScope.session)} C. ${requestScope.sessions.this} D. ${sessionScope.empty} Explanation:Note:* A session is never null. The session is always present in JSP EL, unless you add<%@page session=”false” %>* If you’d like to check if the session is new or has already been …

Which two are true?

Given an EL function declared with: Which two are true? (Choose two) A. The function method must have the signature: public String spin(). B. The method must be mapped to the logical name “spin” in the web.xml file. C. The function method must have the signature: public String spinIt(). D. The function method must have …

Which JSP code snippet creates this email link?

All of your JSPs need to have a link that permits users to email the web master. This web application is licensed to many small businesses, each of which have adifferent email address for the web master. You have decided to use a context parameter that you specify in the deployment descriptor, like this:42. <context-param>43. …

What should you do to address this problem?

You are working on a JSP that is intended to inform users about critical errors in the system. The JSP code is attempting to access the exception that representsthe cause of the problem, but your IDE is telling you that the variable does not exist. What should you do to address this problem? A. Add …

Which JSP code, inserted at line 1, completes the JSP code to invoke the hello tag?

View the exhibit. Assume the tag library in the exhibit is placed in a web application in the path /WEB- INF/tld/example.tld.1.2. <ex:hello />Which JSP code, inserted at line 1, completes the JSP code to invoke the hello tag? A. <%@ taglib prefix=”ex” uri=”/WEB-INF/tld” %> B. <%@ taglib uri=”/WEB-INF/tld/example.tld” %> C. <%@ taglib prefix=”ex” uri:=”http://localhost:8080/tld/example.tld” %> …