Along with the coming of the information age, the excellent IT skills are the primary criterion for selecting talent of enterprises. SUN Certification gives an IT a credential that is recognized in the IT industry. It can act as a passport to a well-rewarded job, smooth the path to promotion or higher earnings. Here, SUN certification 310-083 exam (Sun Certified Web Component Developer for J2EE 5) is a very important exam to help you get better progress and to test your IT skills.
How to successfully pass SUN 310-083 certification exam? Don't worry. With DumpKiller, you will sail through your SUN 310-083 exam.
DumpKiller is a website that provides the candidates with the excellent IT certification exam materials. The SUN certification training 310-083 bootcamp on DumpKiller are on the basis for the real exam and are edited by our experienced IT experts. These dumps have a 99.9% of hit rate. So, we're sure it absolutely can help you pass SUN 310-083 exam and get SUN certificate and you don't need to spend much time and energy on preparing for 310-083 exam.
DumpKiller provides you with the most comprehensive and latest SUN exam materials which contain important knowledge point. And you just need to spend 20-30 hours to study these 310-083 exam questions and answers from our 310-083 dumps.
One year free update for all our customers. If you purchase DumpKiller SUN 310-083 practice test materials, as long as 310-083 questions updates, DumpKiller will immediately send the latest 310-083 questions and answers to your mailbox, which guarantees that you can get the latest 310-083 materials at any time. If you fail in the exam, please send the scanning copy of your 310-083 examination report card provided by the Test Center to the Email address on our website. After confirming, we will give you FULL REFUND of your purchasing fees. We absolutely guarantee you interests.
Before you decide to buy SUN 310-083 exam dumps on DumpKiller, you can download our free demo. In this way, you can know the reliability of DumpKiller.
No matter what level you are, when you prepare for SUN 310-083 exam, we're sure DumpKiller is your best choice.
Don't hesitate. Come on and visit DumpKiller.com to know more information. Let us help you pass 310-083 exam.
Easy and convenient way to buy: Just two steps to complete your purchase, we will send the 310-083 braindump to your mailbox quickly, you only need to download e-mail attachments to get your products.
SUN Sun Certified Web Component Developer for J2EE 5 Sample Questions:
1. You have a simple web application that has a single Front Controller servlet that dispatches to JSPs to generate a variety of views. Several of these views require further database processing to retrieve the necessary order object using the orderID request parameter. To do this additional processing, you pass the request first to a servlet that is mapped to the
URL pattern /WEB-INF/retreiveOrder.do in the deployment descriptor. This servlet takes two request parameters, the orderID and the jspURL. It handles the database calls to retrieve and build the complex order objects and then it dispatches to the jspURL.
Which code snippet in the Front Controller servlet dispatches the request to the order retrieval servlet?
A) request.setAttribute("orderID", orderID);
request.setAttribute("jspURL", jspURL);
RequestDispatcher view
= context.getRequestDispatcher("/WEB-INF/retreiveOrder.do");
view.forward(request, response);
B) String T="/WEB-INF/retreiveOrder.do?orderID=%d&jspURL=%s";
String url = String.format(T, orderID, jspURL);
RequestDispatcher view
= context.getRequestDispatcher(url);
view.forward(request, response);
C) String T="/WEB-INF/retreiveOrder.do?orderID=%d&jspURL=%s";
String url = String.format(T, orderID, jspURL);
Dispatcher view
= context.getDispatcher(url);
view.forwardRequest(request, response);
D) request.setParameter("orderID", orderID);
request.setParameter("jspURL", jspURL);
Dispatcher view
= request.getDispatcher("/WEB-INF/retreiveOrder.do");
view.forwardRequest(request, response);
2. In which two locations can library dependencies be defined for a web application? (Choose two.)
A) the /META-INF/MANIFEST.MF manifest file
B) the /META-INF/dependencies.xml file
C) the web application deployment descriptor
D) the /META-INF/MANIFEST.MF manifest of a JAR in the web application classpath
3. You have built your own light-weight templating mechanism. Your servlets, which handle each request, dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout of the view by inserting the header, body, and footer elements into specific locations within the template page. The URLs for these three elements are stored in request-scoped variables called, headerURL, bodyURL, and footerURL, respectively. These attribute names are never used for other purposes. Which
JSP code snippet should be used in the template JSP to insert the JSP content for the body of the page?
A) <jsp:include file='${bodyURL}' />
B) <jsp:include page='<%= bodyURL %>' />
C) <jsp:insert page='<%= bodyURL %>' />
D) <jsp:insert page='${bodyURL}' />
E) <jsp:include page='${bodyURL}' />
F) <jsp:insert file='${bodyURL}' />
4. Which two statements are true about the security-related tags in a valid Java EE deployment descriptor? (Choose two.)
A) It is possible to construct a valid <security-constraint> tag such that, for a given resource, no user roles can access that resource.
B) Every <security-constraint> tag must have at least one <http-method> tag.
C) A given <auth-constraint> tag can apply to only one <web-resource-collection> tag.
D) A <security-constraint> tag can have many <web-resource-collection> tags.
E) A given <web-resource-collection> tag can contain from zero to many <url-pattern> tags.
5. One 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:
2 01. private static final Set<String> USE_CASE_ATTRS;
2 02. static {
2 03. USE_CASE_ATTRS.add("customerOID");
2 04. USE_CASE_ATTRS.add("custMgrBean");
2 05. USE_CASE_ATTRS.add("orderOID");
2 06. USE_CASE_ATTRS.add("orderMgrBean");
207. }
Which code snippet deletes these attributes from the session object?
A) session.deleteAllAttributes(USE_CASE_ATTRS);
B) session.removeAll(USE_CASE_ATTRS);
C) for ( String attr : USE_CASE_ATTRS ) {
session.removeAttribute(attr);
}
D) for ( String attr : USE_CASE_ATTRS ) {
session.deleteAttribute(attr);
}
E) for ( String attr : USE_CASE_ATTRS ) {
session.remove(attr);
}
Solutions:
Question # 1 Answer: B | Question # 2 Answer: A,D | Question # 3 Answer: E | Question # 4 Answer: A,D | Question # 5 Answer: C |