JSP 页中 xxxxScope的意思和使用?

表示变量的作用域,一共4种。
pageScope:  表示变量只能在本页面使用。
requestScope:表示变量能在本次请求中使用。
eg: <c:forEach items="${requestScope.pagemsg.lists}" var="dict" varStatus="status">  
sessionScope:表示变量能在本次会话中使用。
applicationScope:表示变量能在整个应用程序中使用。

猜你喜欢

转载自blog.csdn.net/qq_32444825/article/details/80957648