<%@ page contentType="text/html;charset=gb2312"%>
<html>
<body >
<b>the value of appAttributeName is:<%=application.getAttribute("appAttributeName") %><p></b>
<b>the value of sessAttributeName is:<%=session.getAttribute("sessAttributeName") %><p></b>
<b>the value of appName is:<%=application.getAttribute("appName") %><p></b>
<b>the value of sessName is:<%=session.getAttribute("sessName") %><p></b>
<%String app=(String)application.getAttribute("appName");
  application.setAttribute("appName",String.valueOf(Integer.parseInt(app)+1)); %>
<%String sss=(String)session.getAttribute("sessName"); 
  session.setAttribute("sessName",String.valueOf(Integer.parseInt(sss)+1)); %>
</body>
</html>