在jsp中作用域由小到大的组合是()A、request page session applicationB、page request session applicationC、pageContext request session applicationD、pageScope request sessionScope applicationScope
在jsp中作用域由小到大的组合是()
- A、request page session application
- B、page request session application
- C、pageContext request session application
- D、pageScope request sessionScope applicationScope
相关考题:
在jsp页面声明中定义了一个方法,下列( )代码不能放入该方法中public void test(HttpServletReqeust request){}A、HttpSession session =request.getSession();B、String name=(String)request.getAttribute("name");C、String name=(String)session.getAttibute("name");D、request.sendRedirect(“index.jsp”);
GivenanHttpServletRequestrequestandanHttpServletResponseresponse:41.HttpSessionsession=null;42.//insertcodehere43.if(session==null){44.//dosomethingifsessiondoesnotexist45.}else{46.//dosomethingifsessionexists47.}Toimplementthedesignintent,whichstatementmustbeinsertedatline42?()A.session=response.getSession();B.session=request.getSession();C.session=request.getSession(true);D.session=request.getSession(false);E.session=request.getSession(jsessionid);
某JSP中有如下代码:pageContext.setAttribute( “a” , ” page ” );request.setAttribute( “a” , ” request ” );session.setAttribute( “a” , ” session ” );application.setAttribute( “a” , ” application ” );% >有:${a}则显示结果为:A.pageB.requestC.sessionD.application
在Sturts应用中,能在()范围内共享数据。 A.共享数据的范围page,request,session,applicationB.共享数据的范围request,session,applicationC.共享数据的范围session,applicationD.共享数据的范围session
下面关于JSP作用域对象的说法错误的是()。A、request对象可以得到请求中的参数B、session对象可以保存用户信息C、application对象可以被多个应用共享D、作用域范围从小到达是request、session、application
如果只希望在多个页面间共享数据,可以使用()作用域。A、request,sessionB、application,sessionC、request,applicationD、pageContext,request
在Sturts应用中,能在()范围内共享数据。A、共享数据的范围page,request,session,applicationB、共享数据的范围request,session,applicationC、共享数据的范围session,applicationD、共享数据的范围session
Given an HttpServletRequest request and an HttpServletResponse response: 41.HttpSession session = null; 42.// insert code here 43.if(session == null) { 44.// do something if session does not exist 45.} else { 46.// do something if session exists47. } To implement the design intent,which statement must be inserted at line 42?()A、session = response.getSession();B、session = request.getSession();C、session = request.getSession(true);D、session = request.getSession(false);E、session = request.getSession("jsessionid");
Given an HttpServletRequest request: 22.String id = request.getParameter("jsessionid"); 23.// insert code here 24.String name = (String) session.getAttribute("name"); Which three can be placed at line 23 to retrieve anexisting HttpSession object?()A、HttpSession session = request.getSession();B、HttpSession session = request.getSession(id);C、HttpSession session = request.getSession(true);D、HttpSession session = request.getSession(false);E、HttpSession session = request.getSession("jsessionid");
按作用域从大到小排列正确的是 ()A、 application page request responseB、 session page request applicationC、 public application session requestD、 application session request page
在JSP中为内置对象定义了4种作用范围,即Application Scope、Session Scope、Page Scope和()四个作用范围。A、Request ScopeB、Response ScopeC、Out ScopeD、Writer Scope
在Servlet里,能正确获取session的语句是()。A、HttpSession session=request.getSession(true)B、HttpSession session=request.getHttpSession(true)C、HttpSession session=response.getSession(true)D、HttpSession session=response.getHttpSession(true)
在JSP页面中,保存数据的范围由小到大依次是()。A、pageContext,request,application,sessionB、pageContext,application,session,requestC、pageContext,request,session,applicationD、pageContext,session,request,application
以下有关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.
单选题在Struts应用中,能在()范围内共享数据。A共享数据的范围page,request,session,applicationB共享数据的范围request,session,applicationC共享数据的范围session,applicationD共享数据的范围session
单选题在Servlet里,能正确获取session的语句是()。AHttpSession session=request.getSession(true)BHttpSession session=request.getHttpSession(true)CHttpSession session=response.getSession(true)DHttpSession session=response.getHttpSession(true)
单选题按作用域从大到小排列正确的是 ()A application page request responseB session page request applicationC public application session requestD application session request page
多选题Given an HttpServletRequest request: 22.String id = request.getParameter("jsessionid"); 23.// insert code here 24.String name = (String) session.getAttribute("name"); Which three can be placed at line 23 to retrieve anexisting HttpSession object?()AHttpSession session = request.getSession();BHttpSession session = request.getSession(id);CHttpSession session = request.getSession(true);DHttpSession session = request.getSession(false);EHttpSession session = request.getSession(jsessionid);
单选题下面关于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?()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.
单选题在JSP页面中,保存数据的范围由小到大依次是()。ApageContext,request,application,sessionBpageContext,application,session,requestCpageContext,request,session,applicationDpageContext,session,request,application
单选题在jsp中作用域由小到大的组合是()Arequest page session applicationBpage request session applicationCpageContext request session applicationDpageScope request sessionScope applicationScope
单选题JavaBean的作用范围可以是page、request、session和()四个作用范围中的一种。AapplicationBlocalCglobalDclass