Variable scope
//File: index.jsp
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
Scope Example
Main File: index.jsp
Scoped Variable |
Current Value |
Page Scope
(scopeVarPage) |
|
Request Scope
(scopeVarRequest) |
|
Session Scope
(scopeVarSession) |
|
Application Scope
(applicationVarPage) |
|
[Click Here to View: linked.jsp]
//////////////////////////////////////////////////////////////////////////////////////////
//File: linked.jsp
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
Scope Example
Linked File: linked.jsp
Scoped Variable |
Current Value |
Page Scope
(scopeVarPage) |
|
Request Scope
(scopeVarRequest) |
|
Session Scope
(scopeVarSession) |
|
Application Scope
(applicationVarPage) |
|
//////////////////////////////////////////////////////////////////////////////////////////
//File: included.jsp
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
Scoped Variable |
Current Value |
Page Scope
(scopeVarPage) |
|
Request Scope
(scopeVarRequest) |
|
Session Scope
(scopeVarSession) |
|
Application Scope
(applicationVarPage) |
|
JSTL-DataScope-Page-Session-Application.zip( 855 k)