I think this might have to do with writing to the output before calling
the getSession.  As you know, you must call getSession or getCookie, or
any such method before writing to the servlets output.  But if you're
using SSI servlet, it's gonna write the text of the .jhtml file up to
the <SERVLET> tag, before calling your servlet.  Try setting the init
parameter buffered=yes and see if that helps.

In your zone.properties:

servlet.org.apache.servlet.ssi.SSI.initArgs=buffered=yes

This will tell the SSI, not to write anything to the output until it
generates the full text of the page...

        -Nissim


Bernhard Heinrich wrote:
> 
> Hi,
> I am using Apache1.3.6 JServ1.0 and the Apache JSSI-servlet under
> WinNT.
> 
> (1) I tried JSSI, but the session-tracking seems not to work:
> The request.getSession(false) always returns null; even if I try to
> start a new session in the SSI-servlet(via request.getSession(true)).
> Is there a trick?
> 
> (2) How can I manage to insert (String)session-Object in existing
> HTML code?: Is there another way apart from using <servlet>-Tag?, or
> anoter way using the <servlet>-tag)
> 
> (3) First I thougt it's something with the zones. (The ssi-servlet
> runs in another zone as the servlets working with the session.) Does
> the zone make a difference to the bound session-Objects?
> 
> (4) There is something wondering me: the SSI-Servlet is NOT called by
> its zone (does not work: <servlet code=/zone1/myServlet>), but it must
> be called by its class: <servlet code="servlets.ssi.myServlet">.
> Hmm, is the ssi-called-servlet running in the JServ-Context at all? Or
> otherway round: Is the ssi-called-servlet-Context the same as the
> normal-servlet Context?
> 
> Bernhard
> --
> ______________________________________________________________________
> 
> Bernhard Heinrich
> mailto:[EMAIL PROTECTED]
> ______________________________________________________________________
> 
> ------------------------------------------------------------
> To subscribe:    [EMAIL PROTECTED]
> To unsubscribe:  [EMAIL PROTECTED]
> Problems?:       [EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:       [EMAIL PROTECTED]

Reply via email to