Hi,
I created a session object and added a string (username) to it.
Systemout.println shows the username from the request. My page is then
forwarded to another as follows:
RequestDispatcher disp = ctx.getRequestDispatcher(target);
disp.forward(request, response);
On this jsp page
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
10:44 AM
>To: [EMAIL PROTECTED]
>Subject: String added to session in servlet not available in jsp
>
>Hi,
>
>I created a session object and added a string (username) to it.
>Systemout.println shows the username from the request. My page is then
>forwarded to another as foll
s 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 servlet not available in jsp
>
> Hi,
>
> I created a session object and
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
r 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
>>To: [EMAIL PROTECTED]
>>Sub
: DA-Erlis Vidal
> Sent: Thursday, October 09, 2003 11:02 AM
> To: 'Tomcat Users List'
> Subject: RE: String added to session in servlet not available in jsp
>
>
> And how you get the session in your JSP??
> Try this
>
> HttpSession session = request.getSessio
; 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
&
> request.getParameter("username") : "" ) ;
> session.setAttribute("usr", username);
>
> Sincerely
> Lic. Computer Science
> Erlis Vidal Santos
>
>
>> -----Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
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
> session.setAttribute("usr", username);
>
> I'm thinking that your request parameter is empty.. Try this and tell us
>
> Sincerely
> Lic. Computer Science
> Erlis Vidal Santos
>
>> -Original Message-
>> From: DA-Erlis Vidal
>&
> To: Tomcat Users List
> Subject: Re: FW: String added to session in servlet not
> available in jsp
>
> I should added that my JSP is a frameset with 2 frames. That
> could be the problem!!!
>
-
To unsubscri
12 matches
Mail list logo