PRJ301_-_SU_2024_-_FE_2371.webp
T

PRJ301_-_SU_2024_-_FE_2371.webp

Kizspy | Question: 29 (Choose 1 answer)
public class Session ExampleServlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// TODO: Your code here
}
} in In the doGet method, how to create a new session for the user if the session doesn't exist?
A. 'HttpSession session = request.createSession();'
B. 'HttpSession session = request.getSession();'
C. 'HttpSession session = new HttpSession();'
D. 'HttpSession session = response.createSession();'

Thông tin

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

Share this media

Back
Bên trên Bottom