PRJ301_-_FE_-_SU_2023_407.webp
sweet_heart

PRJ301_-_FE_-_SU_2023_407.webp

OD
(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 remove all the attributes from the session. Whic option will you use? (Choose one)
A. session.removeAll();
B. session.invalidate();
C. Enumerate the attribute names and remove them one by one from the session using removeAttribute(name) method.
D. session.unbind();
33

Thông tin

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

Image metadata

Filename
PRJ301_-_FE_-_SU_2023_407.webp
File size
69 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom