当前位置: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);

汽车的滑行性能越好,则燃油消耗量越低;当滑行距离220m增至250m时,燃油消耗量将会降低()。 5%。 7%。 10%。 12%。 商业银行为什么要实行贷款五级分类法? 下列有关心电监护叙述不正确的是:() 心电监护心电图非常准确,可以用来诊断心律失常。 电极片一般不需要常规更换,局部皮肤出现瘙痒或疼痛时随时更换。 心电监护的患者需要密切观察患者出现的异常心电波形。 带有起搏器的患者需要区别正常心律与起搏心律。 心电监测患者,发现心电波形有异常时需立即通知医生。 金融市场的客体是指金融市场的()。 交易对象。 交易者。 媒体。 价格。 传统无机非金属材料

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?()

参考答案:

  参考解析

本题暂无解析

在线 客服