Which two statements about tag files are true? (Choose two.)
A. Classic tag handlers and tag files CANNOT reside in the same tag library.Your web application uses a simple architecture in which servlets handle requests and then forward to a JSP using a request dispatcher. You need to pass information calculated by the servlet to the JSP; furthermore, that JSP uses a custom tag and must also process this information. This information must NOT be accessible to any other servlet, JSP or session in the webapp. How can you accomplish this goal?
A. Store the data in a public instance variable in the servlet.You are creating a JSP page to display a collection of data. This data can be displayed in several different ways so the architect on your project decided to create a generic servlet that generates a comma-delimited string so that various
pages can render the data in different ways. This servlet takes on request parameter:
objectID. Assume that this servlet is mapped to the URL pattern: /WEB- INF/data.
In the JSP you are creating, you need to split this string into its elements separated by commas and generate an HTML
Which JSTL code snippet will accomplish this goal?
A. $ {item}Which JSTL code snippet produces the output "big number" when X is greater than 42, but outputs "small number" in all other cases?
A. big numbersmall numberOne of the use cases in your web application uses many session-scoped attributes. At the end of the use case, you want to clear out this set of attributes from the session object. Assume that this static variable holds this set of attribute names:
201.
private static final Set
202.
static {
203.
USE_CASE_ATTRS.add("customerOID");
204.
USE_CASE_ATTRS.add("custMgrBean");
205.
USE_CASE_ATTRS.add("orderOID");
206.
USE_CASE_ATTRS.add("orderMgrBean");
207.
}
Which code snippet deletes these attributes from the session object?
A. session.removeAll(USE_CASE_ATTRS);Which security mechanism uses the concept of a realm?
A. authorizationAfter a merger with another small business, your company has inherited a legacy WAR file but the original source files were lost. After reading the documentation of that web application, you discover that the WAR file contains a useful tag library that you want to reuse in your own webapp packaged as a WAR file.
What do you need to do to reuse this tag library?
A. Simply rename the legacy WAR file as a JAR file and place it in your webapp's library directory.Given:
1.
<% int[] nums = {42,420,4200};
2.
request.setAttribute("foo", nums); %>
3.
${5 + 3 lt 6}
4.
${requestScope['foo'][0] ne 10 div 0}
5.
${10 div 0}
What is the result?
A. true trueYou are designing an n-tier Java EE application. You have already decided that some of your JSPs will need to get data from a Customer entity bean. You are trying to decide whether to use a Customer stub object or a Transfer Object. Which two statements are true? (Choose two.)
A. The stub will increase network traffic.A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which three jsp:useBean attributes must be used to access this attribute in the JSP page? (Choose three.)
A. idNowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-858 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.