多项选择题
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> -
单项选择题
A web browser need NOT always perform a complete request for a particular page that it suspects mightNOT have changed. The HTTP specification provides a mechanism for the browser to retrieve only a partialresponse from the web server; this response includes information, such as the Last-Modified date but NOTthe body of the page. Which HTTP method will the browser use to retrieve such a partial response?()
A.GET
B.ASK
C.SEND
D.HEAD
E.TRACE
