Click the 'Select and Place' button.
Place the events in the order they occur.
您可能感興趣的試卷
你可能感興趣的試題
You are building a dating web site. The client’s date of birth is collected along with lots of other information.The Person class has a derived method, getAge():int, which returns the person’s age calculated from thedate of birth and today’s date. In one of your JSPs you need to print a special message to clients within theage group of 25 through 35.
Which two EL code snippets will return true for this condition? ()
A.${client.age in [25,35]}
B.${client.age between [25,35]}
C.${client.age between 25 and 35}
D.${client.age <= 35 && client.age >= 25}
E.${client.age le 35 and client.age ge 25}
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?
A.${d:dateString(addWeek(curDate(), -1))}
B.${d:dateString[addWeek[curDate[], -1]]}
C.${d:dateString[d:addWeek[d:curDate[], -1]]}
D.${d:dateString(d:addWeek(d:curDate(), -1))}
Given a web application in which the request parameter productID contains a product identifier.
Which twoEL expressions evaluate the value of the productID?()
A.${productID}
B.${param.productID}
C.${params.productID}
D.${params.productID[1]}
E.${paramValues.productID}
F.${paramValues.productID[0]}
You are building a dating service web site. Part of the form to submit a client’s profile is a groupIIof radio buttons for the person’s hobbies:
20.<input type=’radio’ name=’hobbyEnum’ value=’HIKING’>Hiking <br>
21.<input type=’radio’ name=’hobbyEnum’ value=’SKIING’>Skiing <br>
22.<input type=’radio’ name=’hobbyEnum’ value=’SCUBA’>SCUBA Diving
23.<!-- and more options -->
After the user submits this form, a confirmation screen is displayed with these hobbies listed. Assume thatan application-scoped variable, hobbies, holds a map between the Hobby enumerated type and the displayname.
Which EL code snippet will display Nth element of the user’s selected hobbies?()
A.${hobbies[hobbyEnum[N]}
B.${hobbies[paramValues.hobbyEnum[N]]}
C.${hobbies[paramValues@’hobbyEnum’@N]}
D.${hobbies.get(paramValues.hobbyEnum[N])}
E.${hobbies[paramValues.hobbyEnum.get(N)]}
A web application allows the HTML title banner to be set using a servlet context initialization parametercalled titleStr.
Which two properly set the title in this scenario?()
A.<title>${titleStr}</title>
B.<title>${initParam.titleStr}</title>
C.<title>${params[0].titleStr}</title>
D.<title>${paramValues.titleStr}</title>
E.<title>${initParam[’titleStr’]}</title>
最新試題
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.
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?()
Click the 'Select and Place' button.Place the events in the order they occur.
Click the Exhibit button.The attribute "name" has a value of "Foo,"What is the result if this tag handler’s tag is invoked?()
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?()
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.