2003 11:01 AM
>To: Tomcat Users List
>Subject: RE: String added to session in servlet not available in jsp
>
>Yoav,
>
>Very good point. The sessionid from the servlet is different to the one
in
>the browser, as shown below.
>
>Ser: 1DFADA80613F3BE01C86A5C6DE2501A8
>j
> request.getParameter("username") : "" ) ;
> session.setAttribute("usr", username);
>
> Sincerely
> Lic. Computer Science
> Erlis Vidal Santos
>
>
>> -----Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
; Assunto: RE: String added to session in servlet not available in jsp
>
> Yoav,
>
> Very good point. The sessionid from the servlet is different to the one in
> the browser, as shown below.
>
> Ser: 1DFADA80613F3BE01C86A5C6DE2501A8
> jsp: AEAE6C4879702A3CF4254FF85B778D81
&
Yoav,
Very good point. The sessionid from the servlet is different to the one in
the browser, as shown below.
Ser: 1DFADA80613F3BE01C86A5C6DE2501A8
jsp: AEAE6C4879702A3CF4254FF85B778D81
Rudi
>
> Howdy,
> If you display the session ID before adding the user name, and then in
> your JSP as you alr
Lic. Computer Science
Erlis Vidal Santos
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 09, 2003 10:54 AM
> To: Tomcat Users List
> Subject: RE: String added to session in servlet not available in jsp
>
>
&g
> Can you please show how are you creating the session object???
No worries, here it is:
HttpSession session = request.getSession(true);
session.setAttribute("usr", request.getParameter("username"));
> Sincerely
> Lic. Computer Science
> Erlis Vidal Santos
>
> -Original Messag
Howdy,
If you display the session ID before adding the user name, and then in
your JSP as you already do, are they the same session?
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Thursday, October 09, 2003 10:44 AM
Can you please show how are you creating the session object???
Sincerely
Lic. Computer Science
Erlis Vidal Santos
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 10:44 AM
To: [EMAIL PROTECTED]
Subject: String added to session in serv