<html>
<body>
<center>
  <h1>Scope Test (session)</h1>
</center>
 <pre>
  <form action="./setscope.jsp" method="post">
   <ol>
        <li>Application Name:   <input type="text" name="aname"/></li>
        <li>Session Name:       <input type="text" name="sname"/></li>
        <li>Request Name:       <input type="text" name="rname"/></li>
        <li>Page Name:          <input type="text" name="pname"/></li>
   </ol>
   <input type="submit" value="submit"/> 
  </form>
 </pre>
</body>
</html>

  1. inscope.jsp (same-application,different-[session,page,request])
  2. testScope.html
  3. inscope.jsp (same-application,different-[session,page,request])