Hi, I am trying to store some data in session in my first JSP page and then trying to load some jsp pages on the frames of a frameset. But when i am trying to retrive the dats again in the JSP pages loaded on the frames i get a null pointer exception. Can anyone tell me why. I am using relative path as shown in the code below:
**************************************************************************** ******************************* <%!NLSData nlsDataObj;%> <% nlsDataObj = new NLSData(); %> <% nlsDataObj.storeNLSData(request);%> <% request.getSession().putValue(INameConstants.NLSData,nlsDataObj); %> <frameset cols="170,*" rows="50,35,*" border="0" frameborder="0" framespacing="0" rightmargin="0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <frame name="topFrameleft" src="frame/top_left.jsp" scrolling="NO" noresize topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0"> <% System.out.println("PASSED ONE FRAME ");%> <frame name="topFrameright" src="frame/top_right.jsp" scrolling="NO" noresize topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0"> <frame name="headerFrameleft" src="frame/header_left.jsp" scrolling="NO" noresize topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0"> <frame name="headerFrameright" src="frame/header_rightNew.jsp" scrolling="NO" noresize topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0"> <frame name="leftFrame" src="home/navigationEmpty.jsp" scrolling="auto" noresize topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0"> <frame name="mainFrame" src="home/login.jsp" border="0" frameborder="0" scrolling="auto" noresize topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0"> </frameset> **************************************************************************** **************************************** Here NLSData is my Java class. And i am using the following code to access this again from session: <jsp:forward page="../usermanagement/errorpage.jsp" /> I have tried using setAttribute and getAttribute in place of putValue and getValue resp. Can anyone pls tell me the answer for this. Regards, Seema =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com