0 Replies Latest reply on Feb 29, 2004 7:57 AM by zapa

    problem sending variables through jsp

    zapa

      Hello ,
      Here is a scenario that would describe my problem . page index.jsp needs to include page session.jsp , and while dooing that it sends the session.jsp page a variable called sessionid .
      The problem I have that while sessionid is 1 in index.jsp , it's seen as null in the session.jsp page . Here is some simplified code from index.jsp

      String forumid = new String(1 + "") ;
      ----
      
       <jsp:include page="session.jsp?sessionid=
       <% out.print(sessionid); %>"/>
      
      or -----
      
       <jsp:include page="session.jsp">
       <jsp:param name="sessionid" value="${sessionid}"/>
       </jsp:include>
      


      none of these work for me