Our website is an influential leader in providing valid online study materials for IT certification exams, especially SUN certification. Our Sun Certified Web Component Developer for J2EE 5 exam collection enjoys a high reputation by highly relevant content, updated information and, most importantly, 310-083 real questions accompanied with accurate 310-083 exam answers. The study materials of our website contain everything you need to get high score on 310-083 real test. Our aim is always to provide best quality practice exam products with best customer service. This is why more and more customers worldwide choose our website for their Sun Certified Web Component Developer for J2EE 5 exam dumps preparation.
How long will you received your dumps after payment
After you make payment, if the payment was successful and you will receive our email immediately, you just need to click the link in the email and download your 310-083 real questions immediately.
What is online test engine?
Online test engine provides users with 310-083 exam simulations experience. It enables interactive learning that makes exam preparation process easier and can support Windows/Mac/Android/iOS operating systems, which means you can practice your 310-083 real questions and test yourself by 310-083 practice exam. There is no limit of location or time to do 310-083 exam simulations. Online test engine perfectly suit to IT workers
About our products
Our website offers latest study material that contains valid 310-083 real questions and detailed 310-083 exam answers, which written and tested by IT experts and certified trainers. The 310-083 exam dumps have exactly 90% similarity to questions in the 310-083 real test. One week preparation prior to attend exam is highly recommended. Free demo of our 310-083 exam collection can be downloaded from exam page.
If you failed, what should you do?
If you got a bad result in exam, first you can choose to wait the updating of 310-083 exam dumps or free change to other dumps if you have other test. If you want to full refund, please within 7 days after exam transcripts come out, and then scanning the transcripts, add it to the emails as attachments and sent to us. After confirmation, we will refund immediately.
SUN Sun Certified Web Component Developer for J2EE 5 Sample Questions:
1. Which two are true concerning the objects available to developers creating tag files?
(Choose two.)
A) The session object must be declared explicitly.
B) The output stream is available through the implicit outStream object.
C) The request and response objects are available implicitly.
D) The servlet context is available through the implicit servletContext object.
E) The JspContext for the tag file is available through the implicit jspContext object.
2. Which two about WAR files are true? (Choose two.)
A) The web container must allow access to resources in JARs in the web application library directory.
B) WAR files must be located in the web application library directory.
C) WAR files must be created by using archive tools designed specifically for that purpose.
D) The web container must serve the content of any META-INF directory located in a WAR file.
E) WAR files must contain the web application deployment descriptor.
3. If you want to use the Java EE platform's built-in type of authentication that uses a custom
HTML page for authentication, which two statements are true? (Choose two.)
A) In the HTML related to authentication for this application, you must use predefined variable names for the variables that store the user and password values.
B) When you use this type of authentication, SSL is turned on automatically.
C) Your deployment descriptor will need to contain this tag:
< auth-method>CUSTOM</auth-method>.
D) The related custom HTML login page must be named loginPage.html.
E) You must have a tag in your deployment descriptor that allows you to point to both a login HTML page and an HTML page for handling any login errors.
4. Which statement is true about web container session management?
A) 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.
B) If the web application uses HTTPS, then the web container may use the data on the
HTTPS request stream to identify the client.
C) Access to session-scoped attributes is guaranteed to be thread-safe by the web container.
D) To activate URL rewriting, the developer must use the
HttpServletResponse.setURLRewriting method.
5. Your web site has many user-customizable features, for example font and color preferences on web pages. Your IT department has already built a subsystem for user preferences using Java SE's lang.util.prefs package APIs and you have been ordered to reuse this subsystem in your web application. You need to create an event listener that stores the user's Preference object when an HTTP session is created. Also, note that user identification information is stored in an HTTP cookie.
Which partial listener class can accomplish this goal?
A) public class UserPrefLoader implements SessionListener {
public void sessionInitialized(SessionEvent se) {
MyPrefsFactory myFactory = (MyPrefsFactory)
se.getServletContext().getAttribute("myPrefsFactory");
User user = getUserFromCookie(se);
myFactory.setThreadLocalUser(user);
Preferences userPrefs = myFactory.userRoot();
se.getSession().addAttribute("prefs", userPrefs);
}
// more code here
}
B) public class UserPrefLoader implements HttpSessionListener {
public void sessionInitialized(HttpSessionEvent se) {
MyPrefsFactory myFactory = (MyPrefsFactory)
se.getServletContext().getAttribute("myPrefsFactory");
User user = getUserFromCookie(se);
myFactory.setThreadLocalUser(user);
Preferences userPrefs = myFactory.userRoot();
se.getHttpSession().setAttribute("prefs", userPrefs);
}
// more code here
}
C) public class UserPrefLoader implements SessionListener {
public void sessionCreated(SessionEvent se) {
MyPrefsFactory myFactory = (MyPrefsFactory)
se.getContext().getAttribute("myPrefsFactory");
User user = getUserFromCookie(se);
myFactory.setThreadLocalUser(user);
Preferences userPrefs = myFactory.userRoot();
se.getSession().addAttribute("prefs", userPrefs);
}
// more code here
}
D) public class UserPrefLoader implements HttpSessionListener {
public void sessionCreated(HttpSessionEvent se) {
MyPrefsFactory myFactory = (MyPrefsFactory)
se.getServletContext().getAttribute("myPrefsFactory");
User user = getUserFromCookie(se);
myFactory.setThreadLocalUser(user);
Preferences userPrefs = myFactory.userRoot();
se.getSession().setAttribute("prefs", userPrefs);
}
// more code here
}
Solutions:
| Question # 1 Answer: C,E | Question # 2 Answer: A,E | Question # 3 Answer: A,E | Question # 4 Answer: B | Question # 5 Answer: D |



