I am calling a
JSP from a
Servlet. In the Servlet I am puting an object in session. In the JSP i am getting the same session. This JSP is a frame set and calls two other JSP's. The JSP's that are called in this frame set does not have the same session ID. How do I carry the same session ID from the frame set JSP to the other two jsp. I am running this application in Websphere.
I tried using response.encodeURL but still does not work. Can any one suggest what is the problem.
Code in Frame set JSP :
<%@ page session="true" %>
<%@ page language="java" %>
<%@ page errorPage="errorPage.jsp"%>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%@ page import="javax.servlet.*" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page buffer="2080kb" autoFlush="true" %>
<%@ page import="com.jbh.apps.filenet.pod.*"%>
<%PodUserBean userBean = (PodUserBean) session.getAttribute(PodConstants.USERBEAN);
%>
<HTML>
<HEAD><TITLE></TITLE></HEAD>
<frameset frameborder="0" framespacing="0" border="0" cols="*" rows="60,*" >
<frame marginwidth="0" marginheight="0" src="<%=response.encodeURL("pod/header.jsp")%>" name="headerFrame" noresize scrolling="no">
<frame marginwidth="0" marginheight="0" src="<%=response.encodeURL("pod/podSearchCriteria.jsp")%>" name="contentFrame" noresize scrolling="auto">
</frameset>
</HTML>