最新的SUN Sun Certified Web Component Developer for J2EE 5 - 310-083免費考試真題
問題1
A JSP page needs to set the property of a given JavaBean to a value that is calculated with the JSP page. Which three jsp:setProperty attributes must be used to perform this initialization? (Choose three.)
正確答案: C,E,F
問題2
Which JSP standard action can be used to import content from a resource called foo.jsp?
正確答案: C
問題3
Given an EL function foo, in namespace func, that requires a long as a parameter and returns a Map, which two are valid invocations of function foo? (Choose two.)
正確答案: A,B
問題4
A developer has created a special servlet that is responsible for generating XML content that is sent to a data warehousing subsystem. This subsystem uses HTTP to request these large data files, which are compressed by the servlet to save internal network bandwidth.
The developer has received a request from management to create several more of these data warehousing servlets. The developer is about to copy and paste the compression code into each new servlet. Which design pattern can consolidate this compression code to be used by all of the data warehousing servlets?
The developer has received a request from management to create several more of these data warehousing servlets. The developer is about to copy and paste the compression code into each new servlet. Which design pattern can consolidate this compression code to be used by all of the data warehousing servlets?
正確答案: E
問題5
Every page of your web site must include a common set of navigation menus at the top of the page. This menu is static HTML and changes frequently, so you have decided to use
JSP's static import mechanism. Which JSP code snippet accomplishes this goal?
JSP's static import mechanism. Which JSP code snippet accomplishes this goal?
正確答案: E
問題6
In a JSP-centric shopping cart application, you need to move a client's home address of the Customer object into the shipping address of the Order object. The address data is stored in a value object class called Address with properties for: street address, city, province, country, and postal code. Which two JSP code snippets can be used to accomplish this goal? (Choose two.)
正確答案: E,F
問題7
Given an EL function declared with:
1 1. <function>
1 2. <name>spin</name>
1 3. <function-class>com.example.Spinner</function-class>
1 4. <function-signature>
1 5. java.lang.String spinIt()
1 6. </function-signature>
1 7. </function>
Which two are true? (Choose two.)
1 1. <function>
1 2. <name>spin</name>
1 3. <function-class>com.example.Spinner</function-class>
1 4. <function-signature>
1 5. java.lang.String spinIt()
1 6. </function-signature>
1 7. </function>
Which two are true? (Choose two.)
正確答案: A,E
問題8
A JSP page contains a taglib directive whose uri attribute has the value dbtags. Which XML element within the web application deployment descriptor defines the associated TLD?
正確答案: A
問題9
Which two statements about tag files are true? (Choose two.)
正確答案: C,E

