单选题Servlet的事件驱动由()实现。AFilterBListenerCResponseDRequest
单选题
Servlet的事件驱动由()实现。
A
Filter
B
Listener
C
Response
D
Request
参考解析
解析:
暂无解析
相关考题:
在J2EE中,在Servlet1中的doGet和doPost方法中只有如下代码:request.setAttribute(jb,aptech);response.sendRedirect(http://localhost:8080/servlet/Servlet2);那么在Servlet2中使用()可以把属性jb的值取出来。 A.Stringstr=request.getAttribute(jb);B.Stringstr=(String)request.getAttribute(jb);C.Objectstr=request.getAttribute(jb);D.取不出来
snmpv1实现的请求/响应原语包括()。A.get-request、set-request、get-next-request、get-response、trapB.get、getNext、set、trapC.get-request、set-request、get-next-request、get-responseD.get、set、trap
ServletAforwardedarequesttoservletBusingtheforwardmethodofRequestDispatcher.WhatattributeinB’srequestobjectcontainstheURIoftheoriginalrequestreceivedbyservletA?() A.REQUEST_URIB.javax.servlet.forward.request_uriC.javax.servlet.forward.REQUEST_URID.javax.servlet.request_dispatcher.request_uriE.javax.servlet.request_dispatcher.REQUEST_URI
在servlet中实现转发功能是通过()方法实现的。 A.response.getRequestDispatcher()B.response.sendRedirect()C.request..getRequestDispatcher()D.request.sendRedirect()
在servlet中实现重定向功能是通过()方法实现的。 A.response.getRequestDispatcher()B.response.sendRedirect()C.request..getRequestDispatcher()D.request.sendRedirect()
当属性scope的值为application时,JSP动作定义的JavaBean实例就会被存储到()对象中。A、Servlet ContextB、Http SessionC、Servlet ApplicationD、Http Servlet Request
On the wireless LAN, A client is searching for an access point (AP). What is the correct processorder that this client and access point goes through in order to create a connection?()A、association request/response, probe request/response, authentication request/responseB、association request/response, authentication request/response, probe request/responseC、probe request/response, authentication request/response, association request/responseD、probe request/response, association request/response, authentication request/responseE、None of the other alternatives apply
Servlet A forwarded a request to servlet B using the forward method of RequestDispatcher. What attributein B’s request object contains the URI of the original request received by servlet A?()A、REQUEST_URIB、javax.servlet.forward.request_uriC、javax.servlet.forward.REQUEST_URID、javax.servlet.request_dispatcher.request_uriE、javax.servlet.request_dispatcher.REQUEST_URI
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);
Servlet可通过由容器传递来的Http Servlet Request对象的()方法来获取客户请求的输入参数。A、getParameterB、getProtocolC、getContentTypeD、getAttribute
On the Company wireless LAN, A client is searching for an access point (AP). What is the correct process order that this Company client and access point goes through in order to create a connection?()A、 association request/response, probe request/response, authentication request/responseB、 association request/response, authentication request/response, probe request/responseC、 probe request/response, authentication request/response, association request/responseD、 probe request/response, association request/response, authentication request/responseE、 None of the other alternatives apply
A client is searching for an access point (AP). What is the correct process order that the client and access point go through to create a connection?()A、 probe request/response, authentication request/response, association request/responseB、 association request/response, authentication request/response, probe request/responseC、 probe request/response, association request/response, authentication request/responseD、 association request/response, probe request/response, authentication request/response
单选题Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated by the servlet to the JSP;furthermore, that JSP uses a custom tag and must also process this information. This information mustNOT be accessible to any other servlet, JSP or session in the webapp. How can you accomplish this goal?()AStore the data in a public instance variable in the servlet.BAdd an attribute to the request object before using the request dispatcher.CAdd an attribute to the context object before using the request dispatcher.DThis CANNOT be done as the tag handler has no means to extract this data.
单选题Servlet A forwarded a request to servlet B using the forward method of RequestDispatcher. What attributein B’s request object contains the URI of the original request received by servlet A?()AREQUEST_URIBjavax.servlet.forward.request_uriCjavax.servlet.forward.REQUEST_URIDjavax.servlet.request_dispatcher.request_uriEjavax.servlet.request_dispatcher.REQUEST_URI
单选题On the Company wireless LAN, A client is searching for an access point (AP). What is the correct process order that this Company client and access point goes through in order to create a connection?()A association request/response, probe request/response, authentication request/responseB association request/response, authentication request/response, probe request/responseC probe request/response, authentication request/response, association request/responseD probe request/response, association request/response, authentication request/responseE None of the other alternatives apply
单选题A client is searching for an access point (AP). What is the correct process order that the client and access point go through to create a connection?()A probe request/response, authentication request/response, association request/responseB association request/response, authentication request/response, probe request/responseC probe request/response, association request/response, authentication request/responseD association request/response, probe request/response, authentication request/response
单选题在J2EE中,在Servlet1中的doGet和doPost方法中只有如下代码: request.setAttribute("jb","aptech"); response.sendRedirect("http://localhost:8080/servlet/Servlet2"); 那么在Servlet2中使用()可以把属性jb的值取出来。AString str=request.getAttribute(jb);BString str=(String)request.getAttribute(jb);CObject str=request.getAttribute(jb);D取不出来
单选题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?()ADispatcher view=context.getDispatcher(viewURL);view.forward Request(request, response);BDispatcher view=request.getDispatcher(viewURL);view.forward Request(request, response);CRequestDispatcher view. =context.getRequestDispatcher(viewURL);view.forward(request,response);DRequestDispatcher view=request.getRequestDispatcher(viewURL);view.forward(request, response);
单选题Servlet A receives a request that it forwards to servlet B within another web application in the same webcontainer. Servlet A needs to share data with servlet B and that data must not be visible to other servlets inA’s web application. In which object can the data that A shares with B be stored?()AHttpSessionBServletConfigCServletContextDHttpServletRequestEHttpServletResponse
单选题Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A’s web application. In which object can the data that A shares with B be stored?()A HttpSessionB ServletConfigC ServletContextD HttpServletRequestE HttpServletResponse
单选题Which retrieves the binary input stream on line 13?()A request.get Writer ():B request.get Reader ():C request.get Input Stream():D request.get Resource As Stream():E request.get Resource As Stream (Servlet Request. REQUEST):
单选题Given an HttpServlet Request request and Http Servlet Response response, which sets a cookie “username” with the value “joe” in a servlet.?()A request.add Cookie (“username”. “joe”)B request.set Cookie (“username, “joe”)C response.add Cookie (username”, “joe”))D request.add Header (new Cookie (“username”, “joe”))E request.add Cookie (new Cookie (“username”, “joe”))F response.add Cookie (new Cookie (“username”, “joe”))G response.add Header (new Cookie (“username”, “joe”))