Given an HttpServlet Request request and Http Servlet Response response, which sets a cookie “username” with the value “joe” in a servlet.?()
第1题:
A.${userName}
B.${cookie.userName}
C.${cookie.user.name}
D.${cookies.userName[0]}
第2题:
A.request.addCookie(“username”.“joe”)
B.request.setCookie(“username,“joe”)
C.response.addCookie(username”,“joe”))
D.request.addHeader(newCookie(“username”,“joe”))
E.request.addCookie(newCookie(“username”,“joe”))
F.response.addCookie(newCookie(“username”,“joe”))
G.response.addHeader(newCookie(“username”,“joe”))
第3题:
A.Requst.Cookie(“username”)
B.Requst.Cookies(“username”)
C.ResponsE.Cookie(“username”)
D.ResponsE.Cookies(“username”)
第4题:
第5题:
在下列选项中,正确创建并实现写入cookie的语句分别是()。
第6题:
写入和读取cookie的方法是()
第7题:
如何获取一个Cookie[]?()
第8题:
如何创建Cookie?()
第9题:
Requst.Cookie(“username”)
Requst.Cookies(“username”)
ResponsE.Cookie(“username”)
ResponsE.Cookies(“username”)
第10题:
${userName}
${cookie.userName}
${cookie.user.name}
${cookies.userName[0]}
第11题:
request.addCookies()和response.getCookies()
response.addcookie()和request.getCookies()
request.addCookies()和request.getCookies()
response.addcookie()和response.getCookies()
第12题:
Cookie cookie[]=request.getCookies()
Cookie cookie[]=request.addCookies()
response.addCookie(cookie)
Cookie c=new cookie(“name”,“value”)
以上选项都不能
第13题:
A.request.addCookie("username","joe")
B.request.setCookie("username","joe")
C.response.addCookie("username","joe")
D.request.addHeader(newCookie("username","joe"))
E.request.addCookie(newCookie("username","joe"))
F.response.addCookie(newCookie("username","joe"))
第14题:
当用户成功登录到网站时,系统会在(7)建立Cookie,收集用户上网信息。利用ASP建立网站,创建Cookie使用(8)命令,读取Cookie使用(9)命令。
(7)备选答案:A.客户机内存中 B.服务器内存中 C.客户机硬盘中 D.服务器硬盘中
(8)备选答案:A.get.cookies B.response.cookies C.post.cookies D.request.cookies
(9)备选答案:A.get.cookies B.response.cookies
C.post.cookies D.request.cookies
第15题:
第16题:
J2EE中,ServletAPI为使用Cookie,提供了()类。
第17题:
下列操作Session时,代码错误的是()
第18题:
Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?()
第19题:
下面哪句代码能获得硬盘上所有的Cookie?()
第20题:
Given an HttpServletRequest request and HttpServletResponse response,which sets a cookie "username"with the value "joe" in a servlet?()
第21题:
使用newCookie语句
调用responsE.addCookie方法
使用Cookie的setMaxAge方法
setCookie方法
第22题:
request.addCookie(username, joe)
request.setCookie(username, joe)
response.addCookie(username, joe)
request.addHeader(new Cookie(username, joe))
request.addCookie(new Cookie(username, joe))
response.addCookie(new Cookie(username, joe))
第23题:
javax.servlet.http.Cookie
javax.servlet.http.HttpCookie
javax.servlet.Cookie