Hi,
    I have a question about the session.  Here is my test page.
-----------------------------------------------------------------------------------------------------
File Name : mainframe1.jsp
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="*" cols="200,*" frameborder="NO" border="0" framespacing="0">
    <frame name="page1" noresize scrolling="NO" src="page1.jsp">
    <frame name="page2" src="page2.jsp" marginwidth="0" marginheight="0">
  </frameset><noframes></noframes>
<body bgcolor="#FFFFFF">
 
</body>
</html>
-----------------------------------------------------------------------------------------------------
File name: page1.jsp
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
 
<body bgcolor="#FFFFFF">
<form name="form1" method="post" action="TestController">
  <input type="submit" name="Submit" value="Submit">
  <input type="hidden" name="cmd" value ="page3">
  <input type="hidden" name="token" value="<%=request.getAttribute("token")%>">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Session Id: <%=request.getAttribute("sid")%> </p>
</form>
</body>
</html>
-----------------------------------------------------------------------------------------------------
File Name : page 2
 
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
 
<body bgcolor="#FFFFFF">
<form name="form1" method="post" action="TestController">
  <input type="submit" name="Submit" value="Submit">
  <input type="hidden" name="cmd" value ="page4">
  <input type="hidden" name="token" value="<%=request.getAttribute("token")%>">
  <p>&nbsp;</p>
<p>&nbsp;</p>
<p>Session Id: <%=request.getAttribute("sid")%> </p>
</form>
</body>
</html>
-----------------------------------------------------------------------------------------------------
File Name : page 3
 
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
 
<body bgcolor="#FFFFFF">
<form name="form1" method="post" action="TestController" target="_top">
  <input type="submit" name="Submit" value="Submit">
  <input type="hidden" name="cmd" value ="mainFrame2">
  <input type="hidden" name="token" value="<%=request.getAttribute("token")%>">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Session Id: <%=request.getAttribute("sid")%> </p>
</form>
</body>
</html>
-----------------------------------------------------------------------------------------------------
File Name : page 4
 
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
 
<body bgcolor="#FFFFFF">
<form name="form1" method="post" action="TestController"  target="_top">
  <input type="submit" name="Submit" value="Submit">
  <input type="hidden" name="cmd" value ="mainFrame2">
  <input type="hidden" name="token" value="<%=request.getAttribute("token")%>">
  <p>&nbsp;</p>
<p>&nbsp;</p>
<p>Session Id: <%=request.getAttribute("sid")%> </p>
</form>
</body>
</html>
 

Reply via email to