black

SCWCD(310-083)

登录

单项选择题

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?()

单项选择题 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 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?()

All Rights Reserved 版权所有©计算机考试题库(jsjtiku.com)

备案号:湘ICP备14005140号-4

经营许可证号:湘B2-20140064