网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
通过内置对象request,不能够将值从servlet向jsp文件传递。
参考答案和解析
错误
更多 “通过内置对象request,不能够将值从servlet向jsp文件传递。” 相关考题
考题
● ASP 内置对象中, (28 )获取客户端通过浏览器向服务器发送的信息。(28 )A .Request 对象 B .Response 对象C .Session 对象 D .Application 对象
考题
当属性scope的值为application时,JSP动作定义的JavaBean实例就会被存储到()对象中。A、Servlet ContextB、Http SessionC、Servlet ApplicationD、Http Servlet Request
考题
Servlet可通过由容器传递来的Http Servlet Request对象的()方法来获取客户请求的输入参数。A、getParameterB、getProtocolC、getContentTypeD、getAttribute
考题
在J2EE中以下对Request.Dispatcher描述正确的是()。A、JSP中有一个隐含的对象diapatcher,它的类型是Request.DispatcherB、ServletConfig有一个方法,getRequestDispatcher可以取回Request.Dispatche对象C、Request.Dispatche有一个方法,forward可以把请求继续传递给别的servlet或者JSP界面D、JSP中有个隐含的默认对象request,它的类型是Request.Dispatchet
考题
在Java EE中,关于创建HttpServletRequest对象的说法正确的是()。 A、 从request获取传入的参数,可以调用getParameter方法B、 由Java Web应用的Servlet或JSP组件负责创建,当Servlet或JSP组件响应HTTP请求时,先创建HttpServletRequest对象C、 由程序员通过编码形式创建,以传递请求数据D、 以上都不对
考题
在Java EE中,以下对RequestDispatcher描述正确的是()。A、JSP中有个隐含的对象dispatcher,它的类型是RequestDispatcherB、ServletConfig有一个方法:getRequestDispatcher可以返回RequestDipatcher对象C、RequestDipatcher有一个方法:forward可以把请求继续传递给别的Servlet或者JSP界面D、JSP中有个隐含的默认对象request,它的类型是RequestDipatcher
考题
以下有关JSP内置对象的说法错误的是()。A、request对象可以得到请求中的参数B、session对象可以保存用户信息C、application对象可以被多个应用共享D、作用域范围从小到达是request、session、application
考题
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 in the servlet to the JSP for view generation.This information must NOT be accessible to any other servlet,JSP or session in the webapp. Which two techniques can you use to accomplish this goal?()A、Add attributes to the session object.B、Add attributes on the request object.C、Add parameters to the request object.D、Use the pageContext object to add request attributes.E、Add parameters to the JSP’s URL when generating the request dispatcher.
考题
单选题在J2EE中以下对Request.Dispatcher描述正确的是()。A
JSP中有一个隐含的对象diapatcher,它的类型是Request.DispatcherB
ServletConfig有一个方法,getRequestDispatcher可以取回Request.Dispatche对象C
Request.Dispatche有一个方法,forward可以把请求继续传递给别的servlet或者JSP界面D
JSP中有个隐含的默认对象request,它的类型是Request.Dispatchet
考题
单选题在Java EE中,关于创建HttpServletRequest对象的说法正确的是()。A
从request获取传入的参数,可以调用getParameter方法B
由Java Web应用的Servlet或JSP组件负责创建,当Servlet或JSP组件响应HTTP请求时,先创建HttpServletRequest对象C
由程序员通过编码形式创建,以传递请求数据D
以上都不对
考题
单选题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);
考题
多选题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 in the servlet to the JSP for view generation.This information must NOT be accessible to any other servlet,JSP or session in the webapp. Which two techniques can you use to accomplish this goal?()AAdd attributes to the session object.BAdd attributes on the request object.CAdd parameters to the request object.DUse the pageContext object to add request attributes.EAdd parameters to the JSP’s URL when generating the request dispatcher.
考题
单选题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?()A
Store the data in a public instance variable in the servlet.B
Add an attribute to the request object before using the request dispatcher.C
Add an attribute to the context object before using the request dispatcher.D
This CANNOT be done as the tag handler has no means to extract this data.
考题
单选题当属性scope的值为application时,JSP动作定义的JavaBean实例就会被存储到()对象中。A
Servlet ContextB
Http SessionC
Servlet ApplicationD
Http Servlet Request
热门标签
最新试卷