PRJ301_-_FA_2024_-_RE_3071.webp
K

PRJ301_-_FA_2024_-_RE_3071.webp

Kizspy | Question: 28 (Choose 1 answer)
public class Session ExampleServlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// TODO: Your code here
}
} 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
Kusakabe2002
Ngày thêm
Lượt xem
8,339
Lượt bình luận
40
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom