<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>     
<html>
<body>
<c:set var="theavalue"   value="${param.aname}" scope="application" /> 
<c:set var="thesvalue"   value="${param.sname}" scope="session"    /> 
<c:set var="thervalue"   value="${param.rname}" scope="request"    /> 
<c:set var="thepvalue"   value="${param.pname}" scope="page"       /> 

    <h1><i>application</i> scope: <c:out value="${theavalue}"></c:out>.</h1>
    <h1><i>session</i> scope:     <c:out value="${thesvalue}"></c:out>.</h1>
    <h1><i>request</i> scope:     <c:out value="${thervalue}"></c:out>.</h1>
    <h1><i>page</i> scope:        <c:out value="${thepvalue}"></c:out>.</h1>

</body>
</html>