Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page contentType="text/html; charset=UTF-8" pageEncoding="Big5"%>
- <%
- pageContext.setAttribute("customer","peter1");
- request.setAttribute("customer","peter2");
- session.setAttribute("customer","peter3");
- application.setAttribute("customer","peter4");
- %>
- <html>
- <head><title>Test_scope.jsp</title></head>
- <body>
- <%=pageContext.getAttribute("customer")%> = <%=pageContext.getAttribute("customer")%><br>
- <%=request.getAttribute("customer")%> = <%=request.getAttribute("customer")%><br>
- <%=session.getAttribute("customer")%> = <%=session.getAttribute("customer")%><br>
- <%=application.getAttribute("customer")%> = <%=application.getAttribute("customer")%><br>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement