cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent Eskenazi" <lesken...@mail.inforama.fr>
Subject Sessions & Cookies
Date Wed, 19 Apr 2000 15:29:31 GMT
Hi!

I have a problem with cocoon when using sessions with cookies disabled
browsers.
Here is a simple example to understand the problem:

My XML:
<foo id="35">
bar
</foo>

Associated XSL:
<xsl:template match="foo">
  <a href="index.xml?id={@id}"/><xsl:apply-templates/></a>
</xsl:template>

Generated HTML:
<a href="index.xml?id=35>bar</a>

Everything is OK when I'm not using sessions with cookies disabled browsers.
But if I have to use sessions with cookies disabled browsers, I am supposed
to use the Java method response.encodeUrl() on every URL to add the session
reference in this URL. If I don't, I loose my session and every data in
it...

My problem is that I don't know how to use some Java code in my XSL. How do
people handle this problem ?

Thanks

Laurent



Mime
View raw message