black

SCWCD(310-083)

登录

单项选择题

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

相关考题

单项选择题 Whichistrueaboutthewebcontainerrequestprocessingmodel?()

多项选择题 Whichthreearetrueaboutservletfilters?()

单项选择题 All of your JSPs need to have a link that permits users to email the web master. This web application islicensed to many small businesses, each of which have a different email address for the web master. Youhave decided to use a context parameter that you specify in the deployment descriptor, like this: 42.<context-param> 43.<param-name>webmasterEmail</param-name> 44.<param-value>master@example.com</param-value> 45.</context-param> Which JSP code snippet creates this email link?()

All Rights Reserved 版权所有©计算机考试题库(jsjtiku.com)

备案号:湘ICP备14005140号-4

经营许可证号:湘B2-20140064