The usage of a -handcrafted- session bean would be the preffered way.
You loose your session cookie because they are server+context specific
and the change to https will be a change to another server.
encodeURL wouldn't help because tomcat is buggy here.
Regards,
Andreas
-Original
Title: RE: Sessions and absolute URLs
A bean is just java code with some conventions. You can definitely access a bean from a servlet. A JSP gets compiled into a servlet.
-Original Message-
From: Sen, Puny [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 1:02 PM
OK - I'll try that. Excuse the lack of knowledge,
but is it possible to access a bean from a servlet
(not a jsp)?
-Original Message-
From: Michael Quinn [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 9:40 AM
To: [EMAIL PROTECTED]
Subject: RE: Sessions and absolute URLs
Yup you just grab it from the session object and cast it to whatever object
that it is.
-Original Message-
From: Sen, Puny [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 10:41 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Sessions and absolute URLs
OK - I'll try that. Excuse
OK - I'll try that. Excuse the lack of knowledge,
but is it possible to access a bean from a servlet
(not a jsp)?
There is a rough equivalence between JSP bean "scopes" and servlet code:
* jsp:useBean id="name" class="..." scope="page"/
servlet equiv. is a local variable in the doXyz