Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
Exam
: SUN 310-083
Title
: Sun Certified Web
Component Developer for
J2EE 5
Version : Demo
Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
1. To take advantage of the capabilities of modern browsers that use web standards, such as XHTML and
CSS, your web application is being converted from simple JSP pages to JSP Document format. However,
one of your JSPs, /scripts/screenFunctions.jsp, generates a JavaScript file. This file is included in several
web forms to create screen-specific validation functions and are included in these pages with the following
statement:
10. <head>
11.
<script src='/scripts/screenFunctions.jsp'
12.
language='javascript'
13.
type='application/javascript'> </script>
14. </head>
15. <!-- body of the web form -->
Which JSP code snippet declares that this JSP Document is a JavaScript file?
A. <%@ page contentType='application/javascript' %>
B. <jsp:page contentType='application/javascript' />
C. <jsp:document contentType='application/javascript' />
D. <jsp:directive.page contentType='application/javascript' />
E. No declaration is needed because the web form XHTML page already declares the MIME type of the
/scripts/screenFunctions.jsp file in the <script> tag.
Answer: D
2. Given the JSP code:
10. <html>
11. <body>
12. <jsp:useBean id='customer' class='com.example.Customer' />
13. Hello, ${customer.title} ${customer.lastName}, welcome
14. to Squeaky Beans, Inc.
15. </body>
16. </html>
Which three types of JSP code are used? (Choose three.)
A. Java code
B. template text
C. scripting code
D. standard action
E. expression language
Answer: BDE
3. You have built a collection of custom tags for your web application. The TLD file is located in the file:
Exam1pass
Easiest way to pass IT exams
Exam1pass Help You Pass Any IT Exam
http://www.exam1pass.com
/WEB-INF/myTags.xml. You refer to these tags in your JSPs using the symbolic name: myTags. Which
depl