Youarebuildingawebapplicationwithaschedulingcomponent.OntheJSP,youneedtoshowthecurrentdate,thedateofthepreviousweek,andthedateofthenextweek.Tohelpyoupresentthisinformation,youhavecreatedthefollowingELfunctionsinthe’d’namespace:name:curDate;signature:java.util.DatecurrentDate()name:addWeek;signature:java.util.DateaddWeek(java.util.Date,int)name:dateString;signature:java.util.StringgetDateString(java.util.Date)WhichELcodesnippetwillgeneratethestringforthepreviousweek?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))}

Youarebuildingawebapplicationwithaschedulingcomponent.OntheJSP,youneedtoshowthecurrentdate,thedateofthepreviousweek,andthedateofthenextweek.Tohelpyoupresentthisinformation,youhavecreatedthefollowingELfunctionsinthe’d’namespace:name:curDate;signature:java.util.DatecurrentDate()name:addWeek;signature:java.util.DateaddWeek(java.util.Date,int)name:dateString;signature:java.util.StringgetDateString(java.util.Date)WhichELcodesnippetwillgeneratethestringforthepreviousweek?

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))}


相关考题: