Answer:
  (1)request.setAttribute()'s value can get in the next page only,not like session can get in all page.  (2)you can do like this:
         response.sendRedirect("B.jsp?para=theValue")

解决方案 »

  1.   

    (一):
    A.jsp:
    <%@ page contentType="text/html; charset=EUC-JP" %>
    <html>
    <head>
    <title>
    Jsp1
    </title>
    </head>
    <body>
    <h1>
    JBuilder Generated JSP
    </h1>
    <form action="aa.jsp"method="post">
    <%
    request.setAttribute("shibushi","dsfds");
    %><input type="submit"value="dfds">
    </form>
    </body>
    </html>
    aa.jsp:
     <%@ page contentType="text/html; charset=EUC-JP" %>
    <html>
    <head>
    <title>
    aa
    </title>
    </head>
    <body>
    <h1>
    JBuilder Generated JSP
    </h1>
    <%String name=null;
    if(request.getAttribute("shibushi")!=null)
     name=request.getAttribute("shibushi").toString();
     %>
    <%=name%>
    </body>
    </html>
    结果为:null呀!