找考题网-背景图
单项选择题

A.${hobbies[hobbyEnum[N]}B.${hobbies[paramValues.hobbyE……

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

热门试题

单项选择题Your IT department is building a lightweight Front Controller servlet that invokes an application logic objectwith the interface: public interface ApplicationController {public String invoke(HttpServletRequest request)} The return value of this method indicates a symbolic name of the next view. From this name, the FrontController servlet looks up the JSP URL in a configuration table. This URL might be an absolute path or apath relative to the current request. Next, the Front Controller servlet must send the request to this JSP togenerate the view. Assume that the servlet variable request is assigned the current HttpServletRequestobject and the variable context is assigned the webapp’s ServletContext. Which code snippet of the FrontController servlet accomplishes this goal?()

A.Dispatcher view=context.getDispatcher(viewURL);view.forward Request(request, response);
B.Dispatcher view=request.getDispatcher(viewURL);view.forward Request(request, response);
C.RequestDispatcher view. =context.getRequestDispatcher(viewURL);view.forward(request,response);
D.RequestDispatcher view=request.getRequestDispatcher(viewURL);view.forward(request, response);