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
多项选择题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))}