<%
request.setAttribute("name","James");
request.setAttribute("age","30");
request.setAttribute("sex","male");
%>
<jsp:forward page="RequestScopeDemo02.jsp">
RequestScopeDemo02.jsp
<%
String name = (String)request.getAttribute("name");
String age = (String)request.getAttribute("age");
String sex = (String)request.getAttribute("sex");
%>
沒有留言:
張貼留言