PRJ301_-_SP_2024_-_Block_5_-_RE_1951.webp
V

PRJ301_-_SP_2024_-_Block_5_-_RE_1951.webp

(Choose 1 answer)
Consider the following doGet method code of a servlet:
public void doGet(HttpServletRequest req, HttpServletResponse res)
{ String command = req.getParameter("command");
if("remove".equals(command))
{
HttpSession session = req.getSession();
//insert code here
}
} If the command equals remove, you want to unbind an attribute named "user" from the session. Which of the following option will you use? (Choose one)
A. session.unbind("user");
B. session.remove("user");
C. session.deleteAttribute("user");
D. session.removeAttribute("user");
FUO
8
  • Like
Reactions: seloena

Thông tin

Category
PRJ301
Thêm bởi
virtuous_hero
Ngày thêm
Lượt xem
5,067
Lượt bình luận
43
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRJ301_-_SP_2024_-_Block_5_-_RE_1951.webp
File size
240.3 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom