Hi everybody!

I need your help..
I'm trying to track some attributes I added to the session object, but I can't...

I have an html file (main.htm) which opens a new window browser (validate.jsp) when you press a button to access to one service...
Then when the user is validated in the validate.jsp file, I added two attributes to the session object like this:

.......
<%
if (validUser(id_Usuario)){
   session.setAttribute("numero",id_Usuario);
   session.setAttribute("edad",num);
.......
and finally the window is closed and another new window is opened ( portal.jsp ).
%>
            <script>
                window.open("portal.jsp","","top=0,left=0,width=791,height=520,scrollbars=yes,resizable=yes,status=yes")
                return eval('close()')
            </script>
<%
}
%>


The portal.jsp file is formed by frames:

<HTML>
<FRAMESET rows="75,250*" frameborder="0" border="0" framespacing="0">
        <FRAME name="FrameArriba" scrolling="NO" noresize marginwidth="0" marginheight="0" SRC="javascript:void(0);" frameborder="0">

       <FRAMESET cols="128,127*"  border="0" framespacing="0" frameborder="0">
               <FRAME name="FrameIzquierda" scrolling="NO" marginwidth="0" marginheight="0" noresize SRC="javascript:void(0);" frameborder="NO">
               <FRAME name="FrameServicio" marginwidth="0" marginheight="0" noresize SRC="javascript:void(0);" frameborder="NO" >
       </FRAMESET>

       <NOFRAMES>
             Su browser no acepta Frames.
       </NOFRAMES>
</FRAMESET>
</HTML>


In the left frame (FrameIzquierda) I have a jsp file (izquierda.jsp) that reads the new session's attributes (numero,edad) and they are displayed perfectly when the portal.jsp file is opened. Moreover, in the right frame I put a jsp file (blanco.jsp) that also reads the attributes 'id' and 'ag' and they are perfectly displayed too.
But the problem becomes when I click a link placed in the izquierda.jsp file :

.....
<a href="top.jsp">test</a>
or
<a href="top.jsp" target="FrameServicio" >test</a>
.....
The top.jsp file also reads the attributes (numero, edad)...
In both cases the session's attributes are not displayed, they only return a "null" value,  and the session id (session.getId()) is differtent because when the link is pressed, a new session object is created....so.. I don't know how to fix this....
I really need to get the two attributes I stored previously in the session object...

Could you please help me???
I'm desperate!!

Thank you in advance..
Nancy.
 
 

Reply via email to