网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
多选题
关于Servlet/JSP的Session ID,()是正确。
A
预设使用Cookie来储存Session ID
B
Cookie的名称是JSESSION ID
C
在禁用Cookie时,可以使用URL重写来发送Session ID
D
必须自行呼叫HttpSession的getId()方可产生
参考答案
参考解析
解析:
暂无解析
更多 “多选题关于Servlet/JSP的Session ID,()是正确。A预设使用Cookie来储存Session IDBCookie的名称是JSESSION IDC在禁用Cookie时,可以使用URL重写来发送Session IDD必须自行呼叫HttpSession的getId()方可产生” 相关考题
考题
Jsp内嵌对象session的类型为javax.servlet.http.HttpSession,下述语句会使该对象失效的是()
A.session.dispose()B.session.clear()C.session.invalidate()D.session.removeAll()
考题
J2EE应用系统支持5种不同类型的构件模型,包括( )。
A.Applet、JFC、JSP、Servlet、EJB
B.JNDI、IIOP、RMI、EJB、JSP/Servlet
C.JDBC、EJB、JSP、Servlet、JCA
D.Applet、Servlet、JSP、EJB、Application Client
考题
如果不希望JSP网页支持Session,应该如何办?()A、调用HttpSession的invalidate()方法B、〈%@ page session="false" /〉C、〈%@ page session 〉D、〈jsp:useBean id= "user" class= "UserData" scope= "session" /〉
考题
在J2EE中,在JSP中想要使用JavaBean:mypackage.mybean,则以下写法正确的是()。A、jsp:usebean id=”mybean” scop=”page” class=”mypackage.mybean”/ B、jsp:useBean class=”mypackage.mybean.class”/ C、jsp:usebean id=”mybean” class=”mypackage.mybean”/ D、jsp:useBean id=”mybean” class=”mypackage.mybean”/
考题
以下描述JSP与Servlet的关系,正确的有()A、jsp最后会编译成servlet来执行B、MVC中Servlet做C、jsp做VC、Servlet在代码中输出htmlD、JSP和Servlet都是解释执行E、JSP是编译执行,而Servlet是解释执行
考题
关于JSP和Servlet的描述正确的是() A、Jsp能够访问JavaAPI,具备Servlet的全部优点B、Jsp页面只能在接受请求时动态编译成serveltC、Jsp技术构建在Servlet上,它是支持HTML和XML页面制作的Servlet技术的扩展D、访问jsp页面,需要预编译成Servlet
考题
关于JSP的描述,哪个正确()。A、JSP是直译式的网页,与Servlet无关B、JSP会先转译为.java,然后编译为.class载入容器C、JSP会直接由容器动态生成Servlet实例,无需转译D、JSP是丢到浏览器端,由浏览器进行直译
考题
关于Servlet/JSP的Session ID,()是正确。A、预设使用Cookie来储存Session IDB、Cookie的名称是JSESSION IDC、在禁用Cookie时,可以使用URL重写来发送Session IDD、必须自行呼叫HttpSession的getId()方可产生
考题
MVC中的MVC分别用()、()、()表示。A、jsp;servlet;javabeanB、HTml;javabean;jspC、javabean;jsp;servletD、servlet;html;jsp
考题
扩展标签使用的是下面的哪个包?()A、javax.servlet.jsp.tagext.*B、javax.servlet.jsp.*C、java.io.*D、javax.servlet.*
考题
Tomcat 6支持最新的()规范。A、servlet2.3 jsp2.0B、servlet2.5 jsp2.1C、servlet2.3 jsp2.1D、servlet2.5 jsp2.0
考题
A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()A、idB、nameC、beanD、typeE、scope
考题
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.
考题
多选题A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()AidBnameCbeanDtypeEscope
考题
单选题要对主体内容进行操作的标记,必须继承的接口是()。A
javax.Servlet.jsp.tagext. TagB
javax.Servlet.jsp.tagext.BodyTagC
javax.Servlet.jsp. TagD
三个都必须
考题
多选题关于JSP和Servlet的描述正确的是()AJsp能够访问JavaAPI,具备Servlet的全部优点BJsp页面只能在接受请求时动态编译成serveltCJsp技术构建在Servlet上,它是支持HTML和XML页面制作的Servlet技术的扩展D访问jsp页面,需要预编译成Servlet
考题
单选题A session-scoped attribute, product, is stored by a servlet. That servlet then forwards to a JSP page. This attribute holds an instance of the com.Company. Product class with a name property of “The Matrix” and price property of 39.95. Given the JSP page code snippet: What is the response output of this JSP page code snippet? ()A
Default costs 0.0B
Default costs 49.95C
Default costs 39.95D
The Matrix costs 0.0E
The Matrix costs 49.95F
The Matrix costs 39.95
考题
单选题JSP内嵌对象session的类型为javax.servlet.http.HttpSession,下述语句会使该对象失效的是()。A
session.dispose();B
session.clear();C
session.invalidate();D
session.removeAll();
考题
单选题如果不希望JSP网页支持Session,应该如何办?()A
调用HttpSession的invalidate()方法B
〈%@ page session=false /〉C
〈%@ page session 〉D
〈jsp:useBean id= user class= UserData scope= session /〉
考题
多选题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.
热门标签
最新试卷