In JavaServer Pages (JSP), the <jsp:useBean>
tag is used to instantiate and use a JavaBean. The <jsp:useBean>
tag has several attributes, and the scope
attribute is one of them. The scope
attribute determines the scope in which the bean will be stored, and it can take one of the following values:
- page: The bean is only accessible within the current JSP page.
- request: The bean is stored in the request object, making it accessible to the current request.
- session: The bean is stored in the session object, making it accessible across multiple requests from the same user during their session.
- application: The bean is stored in the servlet context, making it accessible to all users of the web application.
So, the correct answer would be:
- page
- request
- session
- application