相关考题

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

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