hi,
I am facing problem in passing sessions through frames...could any one plz help me out.I'm having three pages(validate.jsp,main.jsp & detail.jsp)
In validate.jsp i am creating session,wanna pass this session in the next page main.jsp(which has two frames), and again pass the same seesion in detail.jsp.
I'm not able to get the session in detail.jsp?Plz help me out
validate.jsp
<%
//creating a session
session.putValue("SESS_CUSTID",custid);
%>
main.jsp
<%
String valid_cid=(String)session.getValue("SESS_CUSTID"
String custname=request.getParameter("custname"
%>
<html>
<head>
<title>Library</title>
</head>
<frameset rows="*,*" frameborder="NO" border="0" framespacing="0">
<frame name="topFrame" scrolling="NO" noresize src="test_top.jsp">
<frame name="mainFrame" src="detail.jsp?custname=<%=custname%>">
</frameset>
<noframes>
<body bgcolor="yellow" text="#000000" scroll="no">
</body>
</noframes>
</html>
detail.jsp
<%
String valid_cid=(String)session.getValue("SESS_CUSTID"
out.println(valid_cid);
%>
Looking forward for reply.
Regards,
Chan
I am facing problem in passing sessions through frames...could any one plz help me out.I'm having three pages(validate.jsp,main.jsp & detail.jsp)
In validate.jsp i am creating session,wanna pass this session in the next page main.jsp(which has two frames), and again pass the same seesion in detail.jsp.
I'm not able to get the session in detail.jsp?Plz help me out
validate.jsp
<%
//creating a session
session.putValue("SESS_CUSTID",custid);
%>
main.jsp
<%
String valid_cid=(String)session.getValue("SESS_CUSTID"
String custname=request.getParameter("custname"
%>
<html>
<head>
<title>Library</title>
</head>
<frameset rows="*,*" frameborder="NO" border="0" framespacing="0">
<frame name="topFrame" scrolling="NO" noresize src="test_top.jsp">
<frame name="mainFrame" src="detail.jsp?custname=<%=custname%>">
</frameset>
<noframes>
<body bgcolor="yellow" text="#000000" scroll="no">
</body>
</noframes>
</html>
detail.jsp
<%
String valid_cid=(String)session.getValue("SESS_CUSTID"
out.println(valid_cid);
%>
Looking forward for reply.
Regards,
Chan