PRJ301_-_SU_2024_-_FE_2371.webp
T

PRJ301_-_SU_2024_-_FE_2371.webp

Kizspy | Question: 28
(Choose 1 answer)
How do you retrieve the value of a session attribute named 'userRole' in Java Servlets?
A. String role = session.getAttribute("userRole");
B. String role = session.retrieveAttribute("userRole");
C. String role = request.getParameter("userRole");
D. String role = getAttribute("userRole");

Thông tin

Category
PRJ301
Thêm bởi
Thái Bảo1
Ngày thêm
Lượt xem
7,431
Lượt bình luận
38
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom