Page scope- scope in jsp

前端 未结 2 1434
盖世英雄少女心
盖世英雄少女心 2021-02-05 15:10

There are following scopes in jsp:

page scope

request scope

session scope

and application scope.

I am confused about page scope. Can any

2条回答
  •  太阳男子
    2021-02-05 15:36

    page scope means, it can be thought of as an object that represents the entire JSP page,i.e. the JSP object can be accessed only from within the same page where it was created.
    The page object is really a direct synonym for the this object.
    Note:

    The main difference between page scope and request scope(often confusing ) is that page scope attributes are no longer available if the request is forwarded to another JSP page where as request scope attributes are available.

提交回复
热议问题