Re: Oracle Web Server and Java-Cartridge (sessions)

From: Pier Paolo Bortone <bortone_at_ariadne.it>
Date: Thu, 29 Apr 1999 14:41:01 +0200
Message-ID: <3728535D.F7405E44_at_ariadne.it>


Hi Thomas,

thomas.landgraf_at_materna.de wrote:
>
> Hi,
>
> i just installed the Oracle Web Application Server and played around
> with the java-cartridge to generate dynamic HTML content. The java-
> cartridge provides an environment similar to the one provided by
> Servlets of the Java SDK.

Similar but not equals.
>
> What i am now missing is the support for browser-sessions. Is it possible
> to decide in my java code executed in the java-cartridge, whether the
> request comes from a new browser-session or is a member of a sequence
> of earlier requests?
>
> The PL/SQL-Cartridge provides functionalities to set cookies and thereby
> enabling the programmer to track browser-sessions. The Oracle Web
> Application Server documentation (chapter 2 - Using the java cartridge,
> subsection developer's guide, subtitle "Session") says, that the
> WRB tracks sessions. But there's no word on how to access any session-
> information from my java code.

I have crated a static variable that I set to a value != null at the first time that I access at the cartridge JWeb. At the next times I control that this variable be != null. You must set Session Enabled to your cartridge in the OAS Manager.

>
> Any advice, suggestion or web-link would be greatly appreciated.
Excuse me for my English.
>
> Thanks in advance,
> Thomas Landgraf
>
> PS: Sorry for cross-posting, but there is no appropriate newsgroup.
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Received on Thu Apr 29 1999 - 14:41:01 CEST

Original text of this message