-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Elmer van den Heuvel wrote:
> 
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
> 
> Is it possible to get the cookie information from the request object while
> using SSI ? I wrote a simple servlet that uses cookies and it works fine
> when I access it directly from the browser. However, if I embed it into a
> .jhtml file using the <SERVLET> tag, it doesn't seem to pass in the cookie
> information.
> 
> Any suggestions or documentation I could look at ?
> Thanks in advance,
> -Elmer
> 


Hi Elmer,

This problem is caused by the fact that the JSSI servlet writes output
to the response before calling the sub-servlet.  After you write output
to the response you can't do cookies and sessions anymore.  To solve
this either put the <servlet> tag at the beginning of the .jhtml, or
else run JSSI servlet in Buffered mode by putting the following in your
zone.properties:

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

        -Nissim


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to