就是include。 子页面间的值怎么传递啊?还是request.setAttrabute() 和hidden吗?试了怎么不行啊?求助!!!在线等!!!!

解决方案 »

  1.   

    将值设成page范围
    在主页面直接可以引用
      

  2.   

    是这样的吗? 说的不详细<jsp:include page="/xxxx.jsp">
    <jsp:param name="name" value="<%=namevalue%>"/>
    </jsp:include>
    xxxx.jsp   getParameter("name");
    还有一个就是 直接引用了。
      

  3.   

    这个不用吧,include跟写在一个页面差不多的,不用传递,直接调用就可以
      

  4.   

    <%@ page language="java" contentType="text/html;charset=GBK" %>
    <html>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <table border="0"  background cellpadding="0" cellspacing="0"  <tr>
    <td align="center" width="100%"><a href="路径例如/xx/xx/xx/1.jsp">Name</a></td>

    </tr>
    <tr>
    <td align="center" width="100%"><a href="路径/xx/xx/xx/2.jsp">Name</a></td>
    </tr>
    </table>
    </html>
    本页面名为index.jsp或者什么的
    开发的环境用eslips+myeslips
      

  5.   

    我明白你的意思,例如父页或子页2要使用子页1的对象或数据。
    在子页1,将对象用request.setAttribute("NAME",object);
    在子页2或父页中,用request.getAttribute("NAME");取出.
    注意:一定要在调用的前面将子页1包含引入.
    <jsp:include flush="true" page="1.jsp"></jsp:include>