-Trong JSP,ta có thể dùng những object này cho những biểu thức hoặc những đoạn scriptlets
+page : phạm vi tồn tại trong 1 trang
+session: implicit object tồn tại trong một phiên làm việc
+request: implicit object sẽ tồn tại từ lức client request cho đến khi respone trả về
+application: implict object tồn tại trong vòng đời của ứng dụng.
-Implicit object gồm có 4 nhóm khác nhau:
+ Các object liên hệ với trang JSP
+ Các object tồn tại mà có quan hệ với input và output của trang JSP
+Các object cung cấp context cho trang JSP
+Các object xử lý lỗi
Demo:
Module 8:Write a JSP application to display all header values such as host, user-
agent, accept, accept-language, connection, cookie and host. Use object of Enumeration class and method getHeaderNames() of request object to accomplish the application.
Module8.2: Develop a JSP-based web application to store the timestamp of when the user logged in and display this timestamp information when the user visits the site again.
Không có nhận xét nào:
Đăng nhận xét