You are building a web application that will be used throughout the European Union; therefore, it has significant internationalization requirements. You have been tasked to create a custom tag that generates amessage using the java.text.MessageFormat class. The tag will take the resourceKey attribute and a variable number of argument attributes with the format, arg
Which Simple tag class definition accomplishes this goal of handling a variable number of tag attributes?()
A.
B.
C.
D.
您可能感興趣的試卷
你可能感興趣的試題
Click the Exhibit button.
The attribute "name" has a value of "Foo,"
What is the result if this tag handler’s tag is invoked?()
A.Foo
B.done
C.Foodone
D.An exception is thrown at runtime
E.No output is produced from this code
F.Compilation fails because of an error in this code
You have created a JSP that includes instance variables and a great deal of scriptlet code. Unfortunately,after extensive load testing, you have discovered several race conditions in your JSP scriptlet code. To fixthese problems would require significant recoding, but you are already behind schedule.
Which JSP codesnippet can you use to resolve these concurrency problems?()
A.<%@ page isThreadSafe=’false’ %>
B.<%@ implements SingleThreadModel %>
C.<%! implements SingleThreadModel %>
D.<%@ page useSingleThreadModel=’true’ %>
E.<%@ page implements=’SingleThreadModel’ %>
A.Config
B.Request
C.Session
D.Application
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?()
A.Java code
B.Template text
C.Scripting code
D.Standard action
E.Expression language
最新試題
You are building a web application with a scheduling component. On the JSP, you need to show the currentdate, the date of the previous week, and the date of the next week. To help you present this information,you have created the following EL functions in the ’d’ namespace: name: curDate; signature: java.util.DatecurrentDate() name: addWeek; signature: java.util.Date addWeek(java.util.Date, int) name: dateString;signature:java.util.String getDateString(java.util.Date)Which EL code snippet will generate the string for the previousweek?
You need to create a JSP that generates some JavaScript code to populate an array of strings used on the client-side.Which JSP code snippet will create this array?()
Given tutorial.jsp:2.EL Tutorial3.Example 14.5.Dear ${my:nickname(user)}6.Which, when added to the web application deployment descriptor,ensures that line 5 is included verbatimin the JSP output?()
Which ensures that a JSP response is of type "text/plain"?()
Click the 'Select and Place' button.Place the events in the order they occur.
Given a web application in which the request parameter productID contains a product identifier.Which twoEL expressions evaluate the value of the productID?()
Click the ’Select and Place’ button.Place the events in the order they occur.
Click the 'Select and Place' button.Place the events in the order they occur.
Which two are valid and equivalent?()
You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the <title> tag that requires the page name tobe specified dynamically when the header is imported.Which JSP code snippet performs the import of theheader content?()