Q27.webp
T

Q27.webp

  • Media owner Thu Hà1
  • Ngày thêm
Kizspy | Question: 27
(Choose 1 answer)
public class SessionExampleServlet 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
Thu Hà1
Ngày thêm
Lượt xem
3,032
Lượt bình luận
9
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom