Hi,

Create the Session Object with the false attribute except the first time creation of 
session object. So that
one session object will be maintained with one user from login to logout.

All the best,
Murali



Nancy Crisostomo Martinez wrote:

> 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="arriba.htm" frameborder="0">
>
>                  <FRAMESET cols="128,127*"  border="0" framespacing="0"
> frameborder="0">
>                          <FRAME name="FrameIzquierda" scrolling="NO"
> marginwidth="0" marginheight="0" noresize SRC="izquierda.jsp"
>           frameborder="NO">
>                          <FRAME name="FrameServicio" marginwidth="0"
> marginheight="0" noresize SRC="blanco.jsp" 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.
>
> ===========================================================================
> 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

===========================================================================
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

Reply via email to