Getting the session from parent to child window in JSP - (using struts)
Posted on 2003-10-28
I am developing a JSP application using struts.
The problem that am facing is, am not able to get the session object of the parent window in child window. It is creating a new session object in child window.
for opening the child window in java script-
win = window.open("GfaProjectWeb/commoncsp.do?method=openWorkItemAction&workobjectno="+workObjNum, 'childCSP');
In Action form,
public ActionForward openWorkItemAction(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response)
HttpSession session = request.getSession();
Here the the session object that is created is having different session ID.
Note: 1. If I open the child page in same browser window(ActionForward), I am able to get the session object. When i open in new window, am facing the problem.
Kindly let me know how to tackle this issue.
Thanks and regards,