In modern society, SUN 310-083 certificate has an important impact on your future job, your promotion and salary increase. Also it can make a great deal of difference in your career.
Here, BraindumpsQA's 310-083 exam materials will help you pass your SUN 310-083 certification exam and get SUN certification certificate. Our exam materials are written to the highest standards of technical accuracy. And the 310-083 exam questions and answers are edited by experienced IT experts and have a 99.9% of hit rate.
BraindumpsQA provides you with the most excellent and latest 310-083 PDF Version & Software version exam dumps. The Software version exam material is a test engine that simulates the exam in a real exam environment, which can help you test your level of knowledge about 310-083 exam.
If you have no good idea to prepare for SUN 310-083 exam, BraindumpsQA will be your best choice. Our 310-083 exam questions and answers are the most accurate and almost contain all knowledge points. With the help of our exam materials, you don't need to attend other expensive training courses and just need to take 20-30 hours to grasp our 310-083 exam questions and answers well.
After you purchased our BraindumpsQA's 310-083 exam materials, we offer you free update for one year. We will check the updates of exam materials every day. Once the materials updated, we will automatically free send the latest version to your mailbox.
In addition, we offer you free demo. Before you decide to buy our BraindumpsQA's 310-083 exam materials, you can try our free demo and download it. If it is useful to you, you can click the button 'add to cart' to finish your order.
310-083 Online Test Engine supports Windows / Mac / Android / iOS, etc., because it is the software based on WEB browser.
BraindumpsQA guarantees no help, full refund. If you fail the exam, you just need to send the scanning copy of your examination report card to us. After confirming, we will quickly give you FULL REFUND of your purchasing fees.
Easy and convenient way to buy: Just two steps to complete your purchase, we will send the 310-083 braindumps to your mailbox quickly, later you can check your email and download the attachment.
SUN Sun Certified Web Component Developer for J2EE 5 Sample Questions:
1. You web application uses a lot of Java enumerated types in the domain model of the application. Built into each enum type is a method, getDisplay(), which returns a localized, user-oriented string. There are many uses for presenting enums within the web application, so your manager has asked you to create a custom tag that iterates over the set of enum values and processes the body of the tag once for each value; setting the value into a page-scoped attribute called, enumValue. Here is an example of how this tag is used:
1 0. <select name='season'>
1 1. <t:everyEnum type='com.example.Season'>
1 2. <option value='${enumValue}'>${enumValue.display}</option>
1 3. </t:everyEnum>
1 4. </select>
You have decided to use the Simple tag model to create this tag handler.
Which tag handler method will accomplish this goal?
A) public void doTag() throw JspException {
try {
for ( Enum value : getEnumValues() ) {
pageContext.setAttribute("enumValue", value);
getJspBody().invoke(getOut());
}
} (Exception e) { throw new JspException(e); }
}
B) public void doTag() throw JspException {
try {
for ( Enum value : getEnumValues() ) {
getJspContext().setAttribute("enumValue", value);
getJspBody().invoke(null);
}
} (Exception e) { throw new JspException(e); }
}
C) public void doTag() throw JspException {
try {
for ( Enum value : getEnumValues() ) {
pageContext.setAttribute("enumValue", value);
getJspBody().invoke(getJspContext().getWriter());
}
} (Exception e) { throw new JspException(e); }
}
D) public void doTag() throw JspException {
try {
for ( Enum value : getEnumValues() ) {
getJspContext().setAttribute("enumValue", value);
getJspBody().invoke(getJspContext().getWriter());
}
} (Exception e) { throw new JspException(e); }
}
2. Given:
1 . package com.example;
2 .
3 . public abstract class AbstractItem {
4 . private String name;
...
13. }
Assume a concrete class com.example.ConcreteItem extends com.example.AbstractItem.
A servlet sets a session-scoped attribute called "item" that is an instance of com.example.ConcreteItem and then forwards to a JSP page.
Which two are valid standard action invocations that expose a scripting variable to the JSP page? (Choose two.)
A) <jsp:useBean id="item" type="com.example.ConcreteItem"
class="com.example.AbstractItem"
scope="session" />
B) <jsp:useBean id="com.example.ConcreteItem"
scope="session" />
C) <jsp:useBean id="item" type="com.example.ConcreteItem"
scope="session" />
D) <jsp:useBean id="item" class="com.example.ConcreteItem"
scope="session" />
3. A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed. Which two are true? (Choose two.)
A) The <body-content> element in the echo tag TLD must have the value JSP.
B) The class implementing the echo tag handler must implement the
javax.servlet.jsp.tagext.IterationTag interface.
C) The class implementing the echo tag handler must implement the
javax.servlet.jsp.tagext.DynamicAttributes interface.
D) The echo tag handler must define the setAttribute(String key, String value) method.
E) The <dynamic-attributes>true</dynamic-attributes> element must appear in the echo tag TLD.
4. What is the purpose of session management?
A) To tell the web container to keep the HTTP connection alive so it can make subsequent requests without the delay of making the TCP connection.
B) To manage the user's login and logout activities.
C) To store information on the server-side between HTTP requests.
D) To store information on the client-side between HTTP requests.
5. After 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) Unpack the legacy WAR file, move the TLD file to the META-INF directory, move the class files to the top-level directory, repackage the WAR, and place that WAR file in your webapp's WEB-INF directory.
B) Unpack the legacy WAR file, move the TLD file to the META-INF directory, repackage the whole thing as a JAR file, and place that JAR file in your webapp's library directory.
C) Unpack the legacy WAR file, move the TLD file to the META-INF directory, move the class files to the top-level directory, repackage the whole thing as a JAR file, and place that
JAR file in your webapp's library directory.
D) Simply rename the legacy WAR file as a JAR file and place it in your webapp's library directory.
Solutions:
Question # 1 Answer: B | Question # 2 Answer: C,D | Question # 3 Answer: C,E | Question # 4 Answer: C | Question # 5 Answer: C |